diff options
| author | 2020-06-27 02:47:13 -0400 | |
|---|---|---|
| committer | 2020-06-27 02:47:13 -0400 | |
| commit | 9eaccac6744ab3f48d9f11c677616f0f40c03209 (patch) | |
| tree | 81e078cdb01c58652055573829572e988491fe28 /src/audio_core/stream.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/audio_core/stream.cpp')
| -rw-r--r-- | src/audio_core/stream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio_core/stream.cpp b/src/audio_core/stream.cpp index 4ca98f8ea..ca7cfb030 100644 --- a/src/audio_core/stream.cpp +++ b/src/audio_core/stream.cpp | |||
| @@ -67,7 +67,7 @@ s64 Stream::GetBufferReleaseCycles(const Buffer& buffer) const { | |||
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | static void VolumeAdjustSamples(std::vector<s16>& samples, float game_volume) { | 69 | static void VolumeAdjustSamples(std::vector<s16>& samples, float game_volume) { |
| 70 | const float volume{std::clamp(Settings::values.volume - (1.0f - game_volume), 0.0f, 1.0f)}; | 70 | const float volume{std::clamp(Settings::Volume() - (1.0f - game_volume), 0.0f, 1.0f)}; |
| 71 | 71 | ||
| 72 | if (volume == 1.0f) { | 72 | if (volume == 1.0f) { |
| 73 | return; | 73 | return; |