aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2010-11-23 15:47:54 +0000
committerFilippos Karapetis2010-11-23 15:47:54 +0000
commit23bd8a1c26cb949eefe21e1b3a0047b73075dae7 (patch)
treeedb66256925a85d2bebcd6db5a897d64fd6a9b68
parentc140e43a35480d0a78dd85e99db94f2a61fb0cda (diff)
downloadscummvm-rg350-23bd8a1c26cb949eefe21e1b3a0047b73075dae7.tar.gz
scummvm-rg350-23bd8a1c26cb949eefe21e1b3a0047b73075dae7.tar.bz2
scummvm-rg350-23bd8a1c26cb949eefe21e1b3a0047b73075dae7.zip
SCI: Ignore polyphonic/channel aftertouch (0xa0 / 0xd0) in the MIDI driver, like in the Adlib driver. SSCI doesn't handle these, so we shouldn't handle them either
svn-id: r54428
-rw-r--r--engines/sci/sound/drivers/midi.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/sound/drivers/midi.cpp b/engines/sci/sound/drivers/midi.cpp
index 5a096d2be3..8d4da26103 100644
--- a/engines/sci/sound/drivers/midi.cpp
+++ b/engines/sci/sound/drivers/midi.cpp
@@ -335,6 +335,10 @@ void MidiPlayer_Midi::send(uint32 b) {
case 0xc0:
setPatch(channel, op1);
break;
+ // The original MIDI driver from sierra ignores aftertouch completely, so should we
+ case 0xa0: // Polyphonic key pressure (aftertouch)
+ case 0xd0: // Channel pressure (aftertouch)
+ break;
case 0xe0:
_driver->send(b);
break;