From 81ab6c98fdf1d921e1083a476acf9cd40869a6a2 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 18 May 2017 16:27:36 -0400 Subject: [PATCH] Patched to compile on Windows. --- src/audio/wasapi/SDL_wasapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/wasapi/SDL_wasapi.c b/src/audio/wasapi/SDL_wasapi.c index 6c84030795dd6..6574be555e18d 100644 --- a/src/audio/wasapi/SDL_wasapi.c +++ b/src/audio/wasapi/SDL_wasapi.c @@ -610,7 +610,7 @@ WASAPI_FlushCapture(_THIS) /* just read until we stop getting packets, throwing them away. */ while (SDL_TRUE) { - const HRESULT ret = IAudioCaptureClient_GetBuffer(this->hidden->capture, &ptr, &frames, &flags, NULL, NULL)); + const HRESULT ret = IAudioCaptureClient_GetBuffer(this->hidden->capture, &ptr, &frames, &flags, NULL, NULL); if (ret == AUDCLNT_S_BUFFER_EMPTY) { break; /* no more buffered data; we're done. */ } else if (WasapiFailed(this, ret)) {