mirror of https://github.com/stella-emu/stella.git
removed non-linear volume calculation
This commit is contained in:
parent
02085c1482
commit
21092b61be
|
@ -183,7 +183,7 @@ void SoundSDL2::setVolume(uInt32 percent)
|
|||
myVolume = percent;
|
||||
|
||||
SDL_LockAudio();
|
||||
myVolumeFactor = std::pow(static_cast<float>(percent) / 100.f, 2.f);
|
||||
myVolumeFactor = static_cast<float>(percent) / 100.f;
|
||||
SDL_UnlockAudio();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue