Skip to content

Commit

Permalink
AUDIO: Ignore QT MIDI control change 0
Browse files Browse the repository at this point in the history
QuickTime docs don't list it, and we shouldn't treat it as a bank select
  • Loading branch information
Matthew Hoops committed Nov 18, 2012
1 parent b996a6a commit ca6fdb0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion audio/midiparser_qt.cpp
Expand Up @@ -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;

Expand Down

0 comments on commit ca6fdb0

Please sign in to comment.