From 8977c1a4aa64b3ce8f527969c01c9e8bd695fd9e Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Fri, 29 Jan 2010 23:08:12 +0000 Subject: Disabled the MIDI volume changing code till we figure out why it's getting volume values greater than 127 svn-id: r47688 --- engines/sci/sound/midiparser_sci.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines/sci') diff --git a/engines/sci/sound/midiparser_sci.cpp b/engines/sci/sound/midiparser_sci.cpp index 79a3660931..13ff8dc1b8 100644 --- a/engines/sci/sound/midiparser_sci.cpp +++ b/engines/sci/sound/midiparser_sci.cpp @@ -524,6 +524,8 @@ byte *MidiParser_SCI::midiFilterChannels(int channelMask) { } void MidiParser_SCI::setVolume(byte volume) { + // FIXME: This receives values > 127, so it has been disabled for now +#if 0 assert(volume <= MUSIC_VOLUME_MAX); if (_volume != volume) { _volume = volume; @@ -548,6 +550,7 @@ void MidiParser_SCI::setVolume(byte volume) { error("MidiParser_SCI::setVolume: Unsupported soundVersion"); } } +#endif } } // End of namespace Sci -- cgit v1.2.3