WASAPI: Fix a bug where the device is not drained when stopped.

This commit is contained in:
David Reid
2022-08-11 14:50:37 +10:00
parent 18601c0831
commit 14817aeb9d
+1 -1
View File
@@ -22013,7 +22013,7 @@ static ma_result ma_device_stop__wasapi(ma_device* pDevice)
} }
prevFramesAvaialablePlayback = framesAvailablePlayback; prevFramesAvaialablePlayback = framesAvailablePlayback;
WaitForSingleObject(pDevice->wasapi.hEventPlayback, waitTime); WaitForSingleObject(pDevice->wasapi.hEventPlayback, waitTime * 1000);
ResetEvent(pDevice->wasapi.hEventPlayback); /* Manual reset. */ ResetEvent(pDevice->wasapi.hEventPlayback); /* Manual reset. */
} }
} }