aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-08-18 00:19:22 -0700
committerChris Robinson <[email protected]>2015-08-18 00:19:22 -0700
commit53f6590b17fba8f9de7bdc1a349e9787217d9c85 (patch)
tree2a3ff89a1dfdaeb9dbf2221789dc2cf176af999d
parentd5ab883da21499a14bf86a1aa7f0ad894becb1c5 (diff)
Set the WAVEFORMATEX cbSize field for mmdevapi capture
-rw-r--r--Alc/backends/mmdevapi.c1
1 files changed, 1 insertions, 0 deletions
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