Commit 513c436b authored by David Reid's avatar David Reid

WASAPI: Fix an incorrect format detection error.

Public issue https://github.com/mackron/miniaudio/issues/494
parent c94cf445
......@@ -19141,7 +19141,7 @@ static ma_format ma_format_from_WAVEFORMATEX(const WAVEFORMATEX* pWF)
}
if (pWFEX->Samples.wValidBitsPerSample == 24) {
if (pWFEX->Format.wBitsPerSample == 32) {
/*return ma_format_s24_32;*/
return ma_format_s32;
}
if (pWFEX->Format.wBitsPerSample == 24) {
return ma_format_s24;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment