mirror of
https://github.com/libretro/RetroArch
synced 2025-03-18 13:20:57 +00:00
Merge pull request #11865 from schellingb/fix_winmm_midi_break
winmm_midi: Recover from MIDI messages not handled by the device
This commit is contained in:
commit
036e6fb221
@ -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…
x
Reference in New Issue
Block a user