1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

MIDI: Fix timestamps on Universal MIDI Packets

This commit is contained in:
reuk 2020-12-11 22:38:59 +00:00
parent 1fbd6dff9b
commit 04583469e1
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -55,9 +55,8 @@ public:
if (currentPacketLen == Utils::getNumWordsForMessageType (nextPacket.front()))
{
callback (View (nextPacket.data()), time);
callback (View (nextPacket.data()), timeStamp);
currentPacketLen = 0;
time = timeStamp;
}
});
}
@ -65,7 +64,6 @@ public:
private:
std::array<uint32_t, 4> nextPacket;
size_t currentPacketLen = 0;
double time = 0.0;
};
//==============================================================================