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:
Johannes Schickel 2008-12-11 13:44:58 +00:00
parent 9a3a04f6dd
commit 30507498b0

View File

@ -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;