mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 12:39:56 +00:00
Midi code now allows volume values to be [0, 256] instead of [0, 255] like before, thus removed the clipping the old code used.
svn-id: r35302
This commit is contained in:
parent
9a3a04f6dd
commit
30507498b0
@ -532,8 +532,8 @@ void SoundMidiPC::updateVolumeSettings() {
|
||||
if (!_output)
|
||||
return;
|
||||
|
||||
uint8 newMusVol = CLIP(ConfMan.getInt("music_volume"), 0, 255);
|
||||
_sfxVolume = CLIP(ConfMan.getInt("sfx_volume"), 0, 255);
|
||||
uint8 newMusVol = ConfMan.getInt("music_volume");
|
||||
_sfxVolume = ConfMan.getInt("sfx_volume");
|
||||
|
||||
_output->setSourceVolume(0, newMusVol, newMusVol != _musicVolume);
|
||||
_musicVolume = newMusVol;
|
||||
|
Loading…
Reference in New Issue
Block a user