Windows: Support non-extensible float in WASAPI.

The DualShock 4's headphone jack uses this, for example.
This commit is contained in:
Unknown W. Brackets 2018-09-30 20:26:06 -07:00
parent f7c96651e6
commit ae5ff4bf71

View File

@ -313,6 +313,8 @@ int WASAPIAudioBackend::RunThread() {
format = PCM16;
}
}
} else if (pDeviceFormat->Format.wFormatTag == WAVE_FORMAT_IEEE_FLOAT) {
format = IEEE_FLOAT;
} else {
ERROR_LOG_REPORT_ONCE(unexpectedformat2, SCEAUDIO, "Got unexpected non-extensible WASAPI stream format, expected extensible float!");
if (pDeviceFormat->Format.wBitsPerSample == 16 && pDeviceFormat->Format.nChannels == 2) {