From ed8135610a8029f21751640e604a1104823b9d68 Mon Sep 17 00:00:00 2001 From: David Reid Date: Mon, 30 Sep 2019 20:31:39 +1000 Subject: [PATCH] WASAPI: Fix a wrong-way-around conditional. --- miniaudio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniaudio.h b/miniaudio.h index ed8d724f..13370037 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -9160,7 +9160,7 @@ ma_result ma_device_main_loop__wasapi(ma_device* pDevice) /* Overrun detection. */ - if ((flagsCapture & MA_AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY) == 0) { + if ((flagsCapture & MA_AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY) != 0) { /* Glitched. Probably due to an overrun. */ #ifdef MA_DEBUG_OUTPUT printf("[WASAPI] Overrun.\n");