mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
winmidi: Wait for stream when hot swapping modules (#856)
* winmidi: Wait for stream when hot swapping modules * Manually unset `MHDR_INQUEUE` flag
This commit is contained in:
parent
6a38d3832c
commit
4143e97db2
@ -1451,6 +1451,7 @@ static void I_WIN_ShutdownMusic(void)
|
||||
|
||||
if (buffer.data)
|
||||
{
|
||||
MidiStreamHdr.dwFlags &= ~MHDR_INQUEUE;
|
||||
mmr = midiOutUnprepareHeader((HMIDIOUT)hMidiStream, &MidiStreamHdr,
|
||||
sizeof(MIDIHDR));
|
||||
if (mmr != MMSYSERR_NOERROR)
|
||||
|
Loading…
x
Reference in New Issue
Block a user