summaryrefslogtreecommitdiffstats
path: root/src/audio_core
diff options
context:
space:
mode:
authorKelebek1 <eeeedddccc@hotmail.co.uk>2022-08-12 20:59:09 +0200
committerKelebek1 <eeeedddccc@hotmail.co.uk>2022-08-12 20:59:09 +0200
commit85c9e31791a38d895d8d940b900e4bd94e866901 (patch)
tree18f054ef8e7b3fa3082e491b93e0c9976e93302d /src/audio_core
parentAllow audio volume up to 200% (diff)
downloadyuzu-85c9e31791a38d895d8d940b900e4bd94e866901.tar
yuzu-85c9e31791a38d895d8d940b900e4bd94e866901.tar.gz
yuzu-85c9e31791a38d895d8d940b900e4bd94e866901.tar.bz2
yuzu-85c9e31791a38d895d8d940b900e4bd94e866901.tar.lz
yuzu-85c9e31791a38d895d8d940b900e4bd94e866901.tar.xz
yuzu-85c9e31791a38d895d8d940b900e4bd94e866901.tar.zst
yuzu-85c9e31791a38d895d8d940b900e4bd94e866901.zip
Diffstat (limited to 'src/audio_core')
-rw-r--r--src/audio_core/sink/cubeb_sink.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/audio_core/sink/cubeb_sink.cpp b/src/audio_core/sink/cubeb_sink.cpp
index a4e28de6d..90d049e8e 100644
--- a/src/audio_core/sink/cubeb_sink.cpp
+++ b/src/audio_core/sink/cubeb_sink.cpp
@@ -185,6 +185,9 @@ public:
constexpr s32 max{std::numeric_limits<s16>::max()};
auto yuzu_volume{Settings::Volume()};
+ if (yuzu_volume > 1.0f) {
+ yuzu_volume = 0.6f + 20 * std::log10(yuzu_volume);
+ }
auto volume{system_volume * device_volume * yuzu_volume};
if (system_channels == 6 && device_channels == 2) {