aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorFilippos Karapetis2013-03-27 23:06:27 +0200
committerFilippos Karapetis2013-03-27 23:06:27 +0200
commitb4df7868a1c6c846014159b31fc846c7426f1b9c (patch)
treee99940fb1e6cc30429480f8a312b562b0f410fef /engines/sci
parent3f01f34b1fa7efaccbcfc32c5ce97515a80eb12e (diff)
downloadscummvm-rg350-b4df7868a1c6c846014159b31fc846c7426f1b9c.tar.gz
scummvm-rg350-b4df7868a1c6c846014159b31fc846c7426f1b9c.tar.bz2
scummvm-rg350-b4df7868a1c6c846014159b31fc846c7426f1b9c.zip
SCI: Remove some useless checks in the MIDI driver
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/sound/drivers/midi.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/engines/sci/sound/drivers/midi.cpp b/engines/sci/sound/drivers/midi.cpp
index 37eb37b292..a3d01753ff 100644
--- a/engines/sci/sound/drivers/midi.cpp
+++ b/engines/sci/sound/drivers/midi.cpp
@@ -234,15 +234,9 @@ void MidiPlayer_Midi::controlChange(int channel, int control, int value) {
}
break;
case 0x0a:
- if (_channels[channel].pan == value)
- return;
-
_channels[channel].pan = value;
break;
case 0x40:
- if (_channels[channel].hold == value)
- return;
-
_channels[channel].hold = value;
break;
case 0x4b: // voice mapping
@@ -250,9 +244,6 @@ void MidiPlayer_Midi::controlChange(int channel, int control, int value) {
case 0x4e: // velocity
break;
case 0x7b:
- if (!_channels[channel].playing)
- return;
-
_channels[channel].playing = false;
default:
break;