Skip to content

Commit

Permalink
Merge pull request #331 from markovicpp/coremidi-packet-timestamp
Browse files Browse the repository at this point in the history
CoreMIDI: Fix time delta for messages within same MIDI packet
  • Loading branch information
garyscavone committed Feb 8, 2024
2 parents 6ad594f + eafe2f7 commit 07d1df3
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 07d1df3

Please sign in to comment.