diff options
| author | 2020-06-27 02:47:13 -0400 | |
|---|---|---|
| committer | 2020-06-27 02:47:13 -0400 | |
| commit | 9eaccac6744ab3f48d9f11c677616f0f40c03209 (patch) | |
| tree | 81e078cdb01c58652055573829572e988491fe28 /src/core/settings.cpp | |
| parent | Merge pull request #4158 from Morph1984/caps (diff) | |
| parent | Add a "Mute Audio" hotkey (diff) | |
| download | yuzu-9eaccac6744ab3f48d9f11c677616f0f40c03209.tar.gz yuzu-9eaccac6744ab3f48d9f11c677616f0f40c03209.tar.xz yuzu-9eaccac6744ab3f48d9f11c677616f0f40c03209.zip | |
Merge pull request #4164 from Kewlan/mute-audio-hotkey
hotkeys: Add a "Mute Audio" hotkey
Diffstat (limited to 'src/core/settings.cpp')
| -rw-r--r-- | src/core/settings.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/settings.cpp b/src/core/settings.cpp index 4edff9cd8..56df5e925 100644 --- a/src/core/settings.cpp +++ b/src/core/settings.cpp | |||
| @@ -127,6 +127,13 @@ void LogSettings() { | |||
| 127 | LogSetting("Services_BCATBoxcatLocal", Settings::values.bcat_boxcat_local); | 127 | LogSetting("Services_BCATBoxcatLocal", Settings::values.bcat_boxcat_local); |
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | float Volume() { | ||
| 131 | if (values.audio_muted) { | ||
| 132 | return 0.0f; | ||
| 133 | } | ||
| 134 | return values.volume; | ||
| 135 | } | ||
| 136 | |||
| 130 | bool IsGPULevelExtreme() { | 137 | bool IsGPULevelExtreme() { |
| 131 | return values.gpu_accuracy == GPUAccuracy::Extreme; | 138 | return values.gpu_accuracy == GPUAccuracy::Extreme; |
| 132 | } | 139 | } |