diff options
| author | 2022-08-12 19:59:09 +0100 | |
|---|---|---|
| committer | 2022-08-12 19:59:09 +0100 | |
| commit | 85c9e31791a38d895d8d940b900e4bd94e866901 (patch) | |
| tree | 18f054ef8e7b3fa3082e491b93e0c9976e93302d /src | |
| parent | Allow audio volume up to 200% (diff) | |
| download | yuzu-85c9e31791a38d895d8d940b900e4bd94e866901.tar.gz yuzu-85c9e31791a38d895d8d940b900e4bd94e866901.tar.xz yuzu-85c9e31791a38d895d8d940b900e4bd94e866901.zip | |
Do some log memes to help perceived volume
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: | |||
| 185 | constexpr s32 max{std::numeric_limits<s16>::max()}; | 185 | constexpr s32 max{std::numeric_limits<s16>::max()}; |
| 186 | 186 | ||
| 187 | auto yuzu_volume{Settings::Volume()}; | 187 | auto yuzu_volume{Settings::Volume()}; |
| 188 | if (yuzu_volume > 1.0f) { | ||
| 189 | yuzu_volume = 0.6f + 20 * std::log10(yuzu_volume); | ||
| 190 | } | ||
| 188 | auto volume{system_volume * device_volume * yuzu_volume}; | 191 | auto volume{system_volume * device_volume * yuzu_volume}; |
| 189 | 192 | ||
| 190 | if (system_channels == 6 && device_channels == 2) { | 193 | 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 @@ | |||
| 120 | </sizepolicy> | 120 | </sizepolicy> |
| 121 | </property> | 121 | </property> |
| 122 | <property name="maximum"> | 122 | <property name="maximum"> |
| 123 | <number>100</number> | 123 | <number>200</number> |
| 124 | </property> | 124 | </property> |
| 125 | <property name="pageStep"> | 125 | <property name="pageStep"> |
| 126 | <number>10</number> | 126 | <number>5</number> |
| 127 | </property> | 127 | </property> |
| 128 | <property name="orientation"> | 128 | <property name="orientation"> |
| 129 | <enum>Qt::Horizontal</enum> | 129 | <enum>Qt::Horizontal</enum> |