From 78dab3643cd39c1605a9ad9691027670dc57ddd6 Mon Sep 17 00:00:00 2001 From: Will Wong Date: Thu, 8 Oct 2020 13:20:12 +0900 Subject: [PATCH] Fix loopback typo --- miniaudio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniaudio.h b/miniaudio.h index 2b50cd8f..574c1432 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -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 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); }