ソースを参照

Merge pull request #10 from codepainters/master

This merge fixes spurious callbacks when ignored SysEx messages on Mac OS, which only happened if the sysex messages were split across multiple packets.
garyscavone 11 年 前
コミット
69a1b91784
1 ファイル変更1 行追加1 行削除
  1. 1 1
      RtMidi.cpp

+ 1 - 1
RtMidi.cpp

@@ -422,7 +422,7 @@ void midiInputCallback( const MIDIPacketList *list, void *procRef, void *srcRef
       }
       continueSysex = packet->data[nBytes-1] != 0xF7;
 
-      if ( !continueSysex ) {
+      if ( !( data->ignoreFlags & 0x01 ) && !continueSysex ) {
         // If not a continuing sysex message, invoke the user callback function or queue the message.
         if ( data->usingCallback ) {
           RtMidiIn::RtMidiCallback callback = (RtMidiIn::RtMidiCallback) data->userCallback;