From 23bd8a1c26cb949eefe21e1b3a0047b73075dae7 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 23 Nov 2010 15:47:54 +0000 Subject: 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 --- engines/sci/sound/drivers/midi.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3