aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sound
diff options
context:
space:
mode:
authorMartin Kiewitz2010-06-28 20:17:43 +0000
committerMartin Kiewitz2010-06-28 20:17:43 +0000
commitd8e4160f34787cb239e8073946249fcbfd8e8a34 (patch)
tree2adf289105333b3972e7a7609d0d5785cac2b0cd /engines/sci/sound
parent473c429b5cb7f96112f752a99fc62c7d4d4d55ee (diff)
downloadscummvm-rg350-d8e4160f34787cb239e8073946249fcbfd8e8a34.tar.gz
scummvm-rg350-d8e4160f34787cb239e8073946249fcbfd8e8a34.tar.bz2
scummvm-rg350-d8e4160f34787cb239e8073946249fcbfd8e8a34.zip
SCI: remove clipping of volume inside SciMidiParser::setvolume
svn-id: r50456
Diffstat (limited to 'engines/sci/sound')
-rw-r--r--engines/sci/sound/midiparser_sci.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/engines/sci/sound/midiparser_sci.cpp b/engines/sci/sound/midiparser_sci.cpp
index 2a86ef8942..3c2c0cb3ce 100644
--- a/engines/sci/sound/midiparser_sci.cpp
+++ b/engines/sci/sound/midiparser_sci.cpp
@@ -665,13 +665,6 @@ void MidiParser_SCI::allNotesOff() {
}
void MidiParser_SCI::setVolume(byte volume) {
- // FIXME: This receives values > 127... throw a warning for now and clip the variable
- if (volume > MUSIC_VOLUME_MAX) {
- // FIXME: please write where we get an invalid volume, so we can track down the issue
- error("attempted to set an invalid volume(%d)", volume);
- volume = MUSIC_VOLUME_MAX; // reset
- }
-
assert(volume <= MUSIC_VOLUME_MAX);
_volume = volume;