mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
WASAPI: Fix a bug where the device is not drained when stopped.
This commit is contained in:
+1
-1
@@ -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. */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user