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:
Autechre 2021-01-12 21:04:14 +01:00 committed by GitHub
commit 036e6fb221
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}