fluid_midi_parser_parse pass all realtime messages

This commit is contained in:
Bill Peterson 2022-06-10 03:50:08 -05:00
parent fe7fa3e309
commit ff362b52cd
1 changed files with 3 additions and 8 deletions

View File

@ -2641,17 +2641,12 @@ fluid_midi_parser_parse(fluid_midi_parser_t *parser, unsigned char c)
/* Real-time messages (0xF8-0xFF) can occur anywhere, even in the middle /* Real-time messages (0xF8-0xFF) can occur anywhere, even in the middle
* of another message. */ * of another message. */
if(c >= 0xF8) if(c >= 0xF8)
{
if(c == MIDI_SYSTEM_RESET)
{ {
parser->event.type = c; parser->event.type = c;
parser->status = 0; /* clear the status */ parser->status = 0; /* clear the status */
return &parser->event; return &parser->event;
} }
return NULL;
}
/* Status byte? - If previous message not yet complete, it is discarded (re-sync). */ /* Status byte? - If previous message not yet complete, it is discarded (re-sync). */
if(c & 0x80) if(c & 0x80)
{ {