Midi: fix SysEx handling

We need to clear the event status after each message. Otherwise, after a SysEx message the first byte of the next event will incorrectly inherit its delta_time.
This causes a delay of several seconds in nearly every MT-32 games which uses a lot of long SysEx.
This commit is contained in:
Adrien Moulin 2019-08-14 21:34:28 +02:00
parent 0092aa84d3
commit a545499496

View File

@ -14733,7 +14733,9 @@ bool midi_driver_write(uint8_t byte, uint32_t delta_time)
midi_drv_output_event.data_size);
#endif
midi_drv_output_pending = true;
midi_drv_output_pending = true;
midi_drv_output_event.data_size = 0;
midi_drv_output_event.delta_time = 0;
}
return true;