Skip to content

Commit

Permalink
CoreMIDI: Fix time delta for messages within same MIDI packet
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavol Markovic committed Feb 5, 2024
1 parent 6ad594f commit eafe2f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RtMidi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1116,6 +1116,8 @@ static void midiInputCallback( const MIDIPacketList *list, void *procRef, void *
std::cerr << "\nMidiInCore: message queue limit reached!!\n\n";
}
message.bytes.clear();
// All subsequent messages within same MIDI packet will have time delta 0
message.timeStamp = 0.0;
}
iByte += size;
}
Expand Down

0 comments on commit eafe2f7

Please sign in to comment.