diff options
author | bunnei <bunneidev@gmail.com> | 2020-06-27 08:47:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-27 08:47:13 +0200 |
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 yuzu-9eaccac6744ab3f48d9f11c677616f0f40c03209.tar.gz yuzu-9eaccac6744ab3f48d9f11c677616f0f40c03209.tar.bz2 yuzu-9eaccac6744ab3f48d9f11c677616f0f40c03209.tar.lz yuzu-9eaccac6744ab3f48d9f11c677616f0f40c03209.tar.xz yuzu-9eaccac6744ab3f48d9f11c677616f0f40c03209.tar.zst yuzu-9eaccac6744ab3f48d9f11c677616f0f40c03209.zip |
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 { } static void VolumeAdjustSamples(std::vector<s16>& samples, float game_volume) { - const float volume{std::clamp(Settings::values.volume - (1.0f - game_volume), 0.0f, 1.0f)}; + const float volume{std::clamp(Settings::Volume() - (1.0f - game_volume), 0.0f, 1.0f)}; if (volume == 1.0f) { return; |