From 21092b61be68ac00872a8f4dbe4ae78bcdd33540 Mon Sep 17 00:00:00 2001 From: thrust26 Date: Wed, 11 Jul 2018 22:37:21 +0200 Subject: [PATCH] removed non-linear volume calculation --- src/common/SoundSDL2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/SoundSDL2.cxx b/src/common/SoundSDL2.cxx index dbdee9ebb..4e9227d26 100644 --- a/src/common/SoundSDL2.cxx +++ b/src/common/SoundSDL2.cxx @@ -183,7 +183,7 @@ void SoundSDL2::setVolume(uInt32 percent) myVolume = percent; SDL_LockAudio(); - myVolumeFactor = std::pow(static_cast(percent) / 100.f, 2.f); + myVolumeFactor = static_cast(percent) / 100.f; SDL_UnlockAudio(); } }