Преглед изворни кода

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;