From ae5ff4bf71832b7b327237945717aa4bc2fa333b Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 30 Sep 2018 20:26:06 -0700 Subject: [PATCH] Windows: Support non-extensible float in WASAPI. The DualShock 4's headphone jack uses this, for example. --- Windows/WASAPIStream.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Windows/WASAPIStream.cpp b/Windows/WASAPIStream.cpp index afae91395e..f3811f9487 100644 --- a/Windows/WASAPIStream.cpp +++ b/Windows/WASAPIStream.cpp @@ -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) {