diff options
author | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2022-08-12 20:59:09 +0200 |
---|---|---|
committer | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2022-08-12 20:59:09 +0200 |
commit | 85c9e31791a38d895d8d940b900e4bd94e866901 (patch) | |
tree | 18f054ef8e7b3fa3082e491b93e0c9976e93302d | |
parent | Allow audio volume up to 200% (diff) | |
download | yuzu-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 '')
-rw-r--r-- | src/audio_core/sink/cubeb_sink.cpp | 3 | ||||
-rw-r--r-- | src/yuzu/configuration/configure_audio.ui | 4 |
2 files changed, 5 insertions, 2 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) { diff --git a/src/yuzu/configuration/configure_audio.ui b/src/yuzu/configuration/configure_audio.ui index a5bcee415..6034d8581 100644 --- a/src/yuzu/configuration/configure_audio.ui +++ b/src/yuzu/configuration/configure_audio.ui @@ -120,10 +120,10 @@ </sizepolicy> </property> <property name="maximum"> - <number>100</number> + <number>200</number> </property> <property name="pageStep"> - <number>10</number> + <number>5</number> </property> <property name="orientation"> <enum>Qt::Horizontal</enum> |