Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
69a1b91784
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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;