summaryrefslogtreecommitdiffstats
path: root/src/audio_core
diff options
context:
space:
mode:
authorKewlan <colin_rehn@hotmail.com>2020-06-25 21:05:03 +0200
committerKewlan <colin_rehn@hotmail.com>2020-06-26 06:03:29 +0200
commit3eb8efc09574f7a49d11cccecc245674b7282fa2 (patch)
tree5da602910a7699078e570114b834ca7678b99521 /src/audio_core
parentMerge pull request #4141 from Morph1984/SevenSixAxisSensor (diff)
downloadyuzu-3eb8efc09574f7a49d11cccecc245674b7282fa2.tar
yuzu-3eb8efc09574f7a49d11cccecc245674b7282fa2.tar.gz
yuzu-3eb8efc09574f7a49d11cccecc245674b7282fa2.tar.bz2
yuzu-3eb8efc09574f7a49d11cccecc245674b7282fa2.tar.lz
yuzu-3eb8efc09574f7a49d11cccecc245674b7282fa2.tar.xz
yuzu-3eb8efc09574f7a49d11cccecc245674b7282fa2.tar.zst
yuzu-3eb8efc09574f7a49d11cccecc245674b7282fa2.zip
Diffstat (limited to 'src/audio_core')
-rw-r--r--src/audio_core/stream.cpp2
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;