summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-08-13 00:40:15 +0200
committerGitHub <noreply@github.com>2022-08-13 00:40:15 +0200
commit411e58de28e94dad9460bbb07dfd6a348983202b (patch)
tree2936076d7a6b197ae318a83292fe51d9eb5c12fa /src/common
parentMerge pull request #8755 from Morph1984/delimit-ips (diff)
parentDo some log memes to help perceived volume (diff)
downloadyuzu-411e58de28e94dad9460bbb07dfd6a348983202b.tar
yuzu-411e58de28e94dad9460bbb07dfd6a348983202b.tar.gz
yuzu-411e58de28e94dad9460bbb07dfd6a348983202b.tar.bz2
yuzu-411e58de28e94dad9460bbb07dfd6a348983202b.tar.lz
yuzu-411e58de28e94dad9460bbb07dfd6a348983202b.tar.xz
yuzu-411e58de28e94dad9460bbb07dfd6a348983202b.tar.zst
yuzu-411e58de28e94dad9460bbb07dfd6a348983202b.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/settings.cpp2
-rw-r--r--src/common/settings.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp
index 1c7b6dfae..7282a45d3 100644
--- a/src/common/settings.cpp
+++ b/src/common/settings.cpp
@@ -105,7 +105,7 @@ float Volume() {
if (values.audio_muted) {
return 0.0f;
}
- return values.volume.GetValue() / 100.0f;
+ return values.volume.GetValue() / static_cast<f32>(values.volume.GetDefault());
}
void UpdateRescalingInfo() {
diff --git a/src/common/settings.h b/src/common/settings.h
index 1079cf8cb..14ed9b237 100644
--- a/src/common/settings.h
+++ b/src/common/settings.h
@@ -374,7 +374,7 @@ struct Values {
Setting<std::string> audio_output_device_id{"auto", "output_device"};
Setting<std::string> audio_input_device_id{"auto", "input_device"};
Setting<bool> audio_muted{false, "audio_muted"};
- SwitchableSetting<u8, true> volume{100, 0, 100, "volume"};
+ SwitchableSetting<u8, true> volume{100, 0, 200, "volume"};
Setting<bool> dump_audio_commands{false, "dump_audio_commands"};
// Core