diff options
author | wsoltys <wiso@no.way> | 2013-02-12 20:25:49 +0100 |
---|---|---|
committer | S. Davilla <davilla@4pi.com> | 2013-02-19 11:46:24 -0500 |
commit | ccd82983cf65a51257aa72371114efa867ee0d5a (patch) | |
tree | f8ec9407a3f90fb526fed9e3af6c492adb59b2d7 | |
parent | 6efc1273457d5d24f002bcc98a8342c29c4d3be5 (diff) |
[WIN32][AE] fixed: DirectSound supports more than 2 channels.
-rw-r--r-- | xbmc/cores/AudioEngine/Sinks/AESinkDirectSound.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/cores/AudioEngine/Sinks/AESinkDirectSound.cpp b/xbmc/cores/AudioEngine/Sinks/AESinkDirectSound.cpp index f0fb225b6e..a698164511 100644 --- a/xbmc/cores/AudioEngine/Sinks/AESinkDirectSound.cpp +++ b/xbmc/cores/AudioEngine/Sinks/AESinkDirectSound.cpp @@ -603,7 +603,7 @@ void CAESinkDirectSound::EnumerateDevicesEx(AEDeviceInfoList &deviceInfoList, bo if (SUCCEEDED(hr) && varName.blob.cbSize > 0) { WAVEFORMATEX* smpwfxex = (WAVEFORMATEX*)varName.blob.pBlobData; - deviceInfo.m_channels = layoutsByChCount[std::min(smpwfxex->nChannels, (WORD) 2)]; + deviceInfo.m_channels = layoutsByChCount[std::min(smpwfxex->nChannels, (WORD) 8)]; deviceInfo.m_dataFormats.push_back(AEDataFormat(AE_FMT_FLOAT)); deviceInfo.m_dataFormats.push_back(AEDataFormat(AE_FMT_AC3)); deviceInfo.m_sampleRates.push_back(std::min(smpwfxex->nSamplesPerSec, (DWORD) 96000)); |