Quellcode durchsuchen

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 vor 11 Jahren
Ursprung
Commit
69a1b91784
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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;