diff options
author | Rainer Hochecker <fernetmenta@online.de> | 2014-05-28 10:41:27 +0200 |
---|---|---|
committer | Rainer Hochecker <fernetmenta@online.de> | 2014-06-08 14:05:06 +0200 |
commit | bf6e91c50eb36469ddab4d7b3e9feae54552656c (patch) | |
tree | 94b19baf63359ddcb3dfaf24ddfb0ee944fe79a9 | |
parent | a5b8f4e92253e6444a273a45ee32e73f292232a8 (diff) |
WASAPI: fall back to float if engine requests a planar format
-rw-r--r-- | xbmc/cores/AudioEngine/Sinks/AESinkWASAPI.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xbmc/cores/AudioEngine/Sinks/AESinkWASAPI.cpp b/xbmc/cores/AudioEngine/Sinks/AESinkWASAPI.cpp index 3d2e9d247b..43448bfbeb 100644 --- a/xbmc/cores/AudioEngine/Sinks/AESinkWASAPI.cpp +++ b/xbmc/cores/AudioEngine/Sinks/AESinkWASAPI.cpp @@ -1030,8 +1030,14 @@ bool CAESinkWASAPI::InitializeExclusive(AEAudioFormat &format) if (format.m_dataFormat <= AE_FMT_FLOAT) BuildWaveFormatExtensible(format, wfxex); - else + else if (AE_IS_RAW(format.m_dataFormat)) BuildWaveFormatExtensibleIEC61397(format, wfxex_iec61937); + else + { + // planar formats are currently not supported by this sink + format.m_dataFormat = AE_FMT_FLOAT; + BuildWaveFormatExtensible(format, wfxex); + } /* Test for incomplete format and provide defaults */ if (format.m_sampleRate == 0 || |