Fix loopback typo

This commit is contained in:
Will Wong
2020-10-08 13:20:12 +09:00
parent 17b360539f
commit 78dab3643c
+1 -1
View File
@@ -13558,7 +13558,7 @@ static ma_result ma_device_stop__wasapi(ma_device* pDevice)
In loopback mode it's possible for WaitForSingleObject() to get stuck in a deadlock when nothing is being played. When nothing In loopback mode it's possible for WaitForSingleObject() to get stuck in a deadlock when nothing is being played. When nothing
is being played, the event is never signalled internally by WASAPI which means we will deadlock when stopping the device. is being played, the event is never signalled internally by WASAPI which means we will deadlock when stopping the device.
*/ */
if (pDevice->type == ma_device_type_capture || pDevice->type == ma_device_type_duplex || pDevice->type == ma_device_type_duplex) { if (pDevice->type == ma_device_type_capture || pDevice->type == ma_device_type_duplex || pDevice->type == ma_device_type_loopback) {
SetEvent((HANDLE)pDevice->wasapi.hEventCapture); SetEvent((HANDLE)pDevice->wasapi.hEventCapture);
} }