From f35b705fd8bb933c72f4532d4a90ba10922ada38 Mon Sep 17 00:00:00 2001 From: David Reid Date: Tue, 26 Feb 2019 19:37:00 +1000 Subject: [PATCH] WASAPI: Add a missing "if" statement. --- mini_al.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mini_al.h b/mini_al.h index c5357997..1000743c 100644 --- a/mini_al.h +++ b/mini_al.h @@ -7925,7 +7925,7 @@ mal_result mal_device_read__wasapi(mal_device* pDevice, void* pPCMFrames, mal_ui If we're running in full-duplex mode and there's too much data in the buffer we need to discard some to ensure we don't get stuck stradling the edge of the buffer and causing endless glitching. */ - { + if (pDevice->type == mal_device_type_duplex) { mal_uint32 framesAvailable; result = mal_device__get_available_frames__wasapi(pDevice, (mal_IAudioClient*)pDevice->wasapi.pAudioClientCapture, &framesAvailable); if (result == MAL_SUCCESS) {