From 53f6590b17fba8f9de7bdc1a349e9787217d9c85 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 18 Aug 2015 00:19:22 -0700 Subject: Set the WAVEFORMATEX cbSize field for mmdevapi capture --- Alc/backends/mmdevapi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Alc/backends') diff --git a/Alc/backends/mmdevapi.c b/Alc/backends/mmdevapi.c index e688052d..aeb8446a 100644 --- a/Alc/backends/mmdevapi.c +++ b/Alc/backends/mmdevapi.c @@ -1544,6 +1544,7 @@ static HRESULT ALCmmdevCapture_resetProxy(ALCmmdevCapture *self) OutputType.Format.wBitsPerSample / 8; OutputType.Format.nAvgBytesPerSec = OutputType.Format.nSamplesPerSec * OutputType.Format.nBlockAlign; + OutputType.Format.cbSize = sizeof(OutputType) - sizeof(OutputType.Format); hr = IAudioClient_IsFormatSupported(self->client, AUDCLNT_SHAREMODE_SHARED, &OutputType.Format, &wfx -- cgit v1.2.3