mirror of
https://gitlab.com/square-game-liberation-front/F.E.I.S.git
synced 2024-11-15 03:27:41 +01:00
Fix bug in SoundEffect::setVolume
This commit is contained in:
parent
2960f8d424
commit
26c71f990c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user