Permalink
Browse files

Windows: Support non-extensible float in WASAPI.

The DualShock 4's headphone jack uses this, for example.
  • Loading branch information...
unknownbrackets committed Oct 1, 2018
1 parent f7c9665 commit ae5ff4bf71832b7b327237945717aa4bc2fa333b
Showing with 2 additions and 0 deletions.
  1. +2 −0 Windows/WASAPIStream.cpp
View
@@ -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) {

0 comments on commit ae5ff4b

Please sign in to comment.