1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-26 02:14:22 +00:00

Replace isInitialByte() check with isStatusByte() in MidiDataConcatenator::processSysex() to fix truncated sysex messages

This commit is contained in:
ed 2019-03-19 14:58:33 +00:00
parent ff1dbf5f6d
commit 291d654ece

View file

@ -116,7 +116,7 @@ private:
do
{
if (pendingSysexSize > 0 && isInitialByte (*d))
if (pendingSysexSize > 0 && isStatusByte (*d))
{
if (*d == 0xf7)
{
@ -172,7 +172,8 @@ private:
}
static bool isRealtimeMessage (uint8 byte) { return byte >= 0xf8 && byte <= 0xfe; }
static bool isInitialByte (uint8 byte) { return byte >= 0x80 && byte != 0xf7; }
static bool isStatusByte (uint8 byte) { return byte >= 0x80; }
static bool isInitialByte (uint8 byte) { return isStatusByte (byte) && byte != 0xf7; }
uint8 currentMessage[3];
int currentMessageLen = 0;