Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend/StarMainMixer.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-03-25 01:57:55 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2024-03-25 01:57:55 +1100
commit6b8c4729787daa0c584447f9014bf32320d82789 (patch)
treed450f79ef6757ea96c69a5a4b5cda2d90f37d383 /source/frontend/StarMainMixer.cpp
parent5da4b1a4e3493427567583c90c4cbe03c5d3979c (diff)
nicer volume sliders
Diffstat (limited to 'source/frontend/StarMainMixer.cpp')
-rw-r--r--source/frontend/StarMainMixer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/frontend/StarMainMixer.cpp b/source/frontend/StarMainMixer.cpp
index fe676d5..df80018 100644
--- a/source/frontend/StarMainMixer.cpp
+++ b/source/frontend/StarMainMixer.cpp
@@ -37,6 +37,7 @@ void MainMixer::update(float dt, bool muteSfx, bool muteMusic) {
}
} else if (!m_mutedGroups.contains(group)) {
float volumeSetting = Root::singleton().configuration()->get(settingName).toFloat() / 100.0f;
+ volumeSetting = perceptualToAmplitude(volumeSetting);
if (!m_groupVolumes.contains(group) || volumeSetting != m_groupVolumes[group]) {
m_mixer->setGroupVolume(group, volumeSetting);
m_groupVolumes[group] = volumeSetting;