aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorMatthew Hoops2012-11-18 14:20:24 -0500
committerMatthew Hoops2012-11-18 14:20:24 -0500
commitca6fdb0807bf9ee46b6341685c129e27451db0f6 (patch)
treedca4d90343fcc3eac9510b94543d872850bb3c5e /audio
parentb996a6a27034850b0c6e110e4ca3ac69adab9c84 (diff)
downloadscummvm-rg350-ca6fdb0807bf9ee46b6341685c129e27451db0f6.tar.gz
scummvm-rg350-ca6fdb0807bf9ee46b6341685c129e27451db0f6.tar.bz2
scummvm-rg350-ca6fdb0807bf9ee46b6341685c129e27451db0f6.zip
AUDIO: Ignore QT MIDI control change 0
QuickTime docs don't list it, and we shouldn't treat it as a bank select
Diffstat (limited to 'audio')
-rw-r--r--audio/midiparser_qt.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/audio/midiparser_qt.cpp b/audio/midiparser_qt.cpp
index 226495bee3..3e95703728 100644
--- a/audio/midiparser_qt.cpp
+++ b/audio/midiparser_qt.cpp
@@ -196,7 +196,12 @@ void MidiParser_QT::handleControllerEvent(uint32 control, uint32 part, byte intP
byte channel = getChannel(part);
EventInfo info;
- if (control == 32) {
+ if (control == 0) {
+ // "Bank select"
+ // QuickTime docs don't list this, but IHNM Mac calls this anyway
+ // We have to ignore this.
+ return;
+ } else if (control == 32) {
// Pitch bend
info.event = 0xE0 | channel;