mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Recover from messages not handled by the device
When an underlying MIDI device does not understand/support a MIDI message (very common with sysex messages) it returns an error code. With this fix MIDI output can continue gracefully even after an emulated game sends an unsupported message.
This commit is contained in:
parent
0ce218e20a
commit
4fcace9aed
1 changed files with 4 additions and 0 deletions
|
@ -605,6 +605,10 @@ static bool winmm_midi_flush(void *p)
|
|||
#ifdef DEBUG
|
||||
RARCH_ERR("[MIDI]: midiStreamOut failed with error %d.\n", mmr);
|
||||
#endif
|
||||
// Core sent MIDI message not understood by the MIDI driver
|
||||
// Make this buffer available to be used again
|
||||
buf->header.dwFlags |= MHDR_DONE;
|
||||
buf->header.dwFlags &= ~MHDR_INQUEUE;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue