Fix bug in SoundEffect::setVolume

This commit is contained in:
Stepland 2022-02-28 23:04:18 +01:00
parent 2960f8d424
commit 26c71f990c

View File

@ -21,7 +21,7 @@ void SoundEffect::play() {
void SoundEffect::setVolume(int newVolume) {
volume = std::clamp(newVolume, 0, 10);
Toolbox::updateVolume(sound, volume);
sound.setVolume(Toolbox::convertVolumeToNormalizedDB(volume));
}
int SoundEffect::getVolume() const {