removed non-linear volume calculation

This commit is contained in:
thrust26 2018-07-11 22:37:21 +02:00
parent 02085c1482
commit 21092b61be
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ void SoundSDL2::setVolume(uInt32 percent)
myVolume = percent; myVolume = percent;
SDL_LockAudio(); SDL_LockAudio();
myVolumeFactor = std::pow(static_cast<float>(percent) / 100.f, 2.f); myVolumeFactor = static_cast<float>(percent) / 100.f;
SDL_UnlockAudio(); SDL_UnlockAudio();
} }
} }