Explorar el Código

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 hace 11 años
padre
commit
69a1b91784
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;