diff options
author | Matthew Hoops | 2012-11-18 14:20:24 -0500 |
---|---|---|
committer | Matthew Hoops | 2012-11-18 14:20:24 -0500 |
commit | ca6fdb0807bf9ee46b6341685c129e27451db0f6 (patch) | |
tree | dca4d90343fcc3eac9510b94543d872850bb3c5e /audio | |
parent | b996a6a27034850b0c6e110e4ca3ac69adab9c84 (diff) | |
download | scummvm-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.cpp | 7 |
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; |