Commit 14817aeb authored by David Reid's avatar David Reid

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

parent 18601c08
...@@ -22013,7 +22013,7 @@ static ma_result ma_device_stop__wasapi(ma_device* pDevice) ...@@ -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. */
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment