diff options
author | Kewlan <colin_rehn@hotmail.com> | 2020-06-25 21:05:03 +0200 |
---|---|---|
committer | Kewlan <colin_rehn@hotmail.com> | 2020-06-26 06:03:29 +0200 |
commit | 3eb8efc09574f7a49d11cccecc245674b7282fa2 (patch) | |
tree | 5da602910a7699078e570114b834ca7678b99521 /src/core/settings.cpp | |
parent | d11baf8bf8655047737295544c161ecef7600fe0 (diff) |
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 4edff9cd89..56df5e925d 100644 --- a/src/core/settings.cpp +++ b/src/core/settings.cpp @@ -127,6 +127,13 @@ void LogSettings() { LogSetting("Services_BCATBoxcatLocal", Settings::values.bcat_boxcat_local); } +float Volume() { + if (values.audio_muted) { + return 0.0f; + } + return values.volume; +} + bool IsGPULevelExtreme() { return values.gpu_accuracy == GPUAccuracy::Extreme; } |