Skip to content
Browse files

[WIN32][AE] fixed: samplerate can be at least 192kHz (probably more?)

  • Loading branch information...
1 parent 0431403 commit 8a34571fed74738414f7a703840cf9309705e42e wsoltys committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/cores/AudioEngine/Sinks/AESinkDirectSound.cpp
2 xbmc/cores/AudioEngine/Sinks/AESinkDirectSound.cpp
@@ -606,7 +606,7 @@ void CAESinkDirectSound::EnumerateDevicesEx(AEDeviceInfoList &deviceInfoList, bo
deviceInfo.m_channels = layoutsByChCount[std::min(smpwfxex->nChannels, (WORD) 8)];
- deviceInfo.m_sampleRates.push_back(std::min(smpwfxex->nSamplesPerSec, (DWORD) 96000));
+ deviceInfo.m_sampleRates.push_back(std::min(smpwfxex->nSamplesPerSec, (DWORD) 192000));

7 comments on commit 8a34571

Team Kodi member

@wsoltys 192kHz with some (buggy?) drivers could cause many problems, so it's limited to safe value of 96kHz.

Team Kodi member

The standard format of my analog speakers was set to 24Bit, 48000Hz although it seems to be capable of 192kHz. So why not let the user decide if he wants higher rates rather than limiting it? But I'm still open for suggestions.
It seems to be that in Eden we didn't limited it at all. Also I dunno what AE makes out of it. Is the sample regardless of its source sample rate upsampled or does this just indicate that the device could render sample rates up to xxxHz (I would assume latter)?

Team Kodi member

Starting from Vista everything is resampled to basic format (can be set up in Windows Control Panel). Except exclusive mode, which is used in XBMC starting from Frodo.
192 kHz with DirectSound problems is mostly related to WinXP. But it can totally hang computer or call BSOD.
@DDDamian, your word?

Team Kodi member

I thought we only use exclusive mode in Wasapi and DirectSound is still shared?

Team Kodi member

That's right. But DirectSound allow to set sampling rate to higher value even on XP and on Vista+.


The initial thought there was to limit it (those looking for high quality are not generally using DS, and 96kHz is still extremely high quality) but I'm not really opposed to the change.

DS will downsample it to the Windows settings regardless, so if someone changes them to 192kHz and crashes it was deliberately done. For those few who do have 192kHz audio files why limit it in XBMC if they purposefully allow it in Windows setup?

Team Kodi member

In the era of WinXP those settings was directly applied to hardware. And many apps was limiting DS to 96kHz. Including RMAA, bass lib...
Possibly drivers was broken, possible other reasons. And I don't know, was it fixed or not.
There are some users on XP, many with older hardware. We can leave this change as is and wait for any complains.

Please sign in to comment.
Something went wrong with that request. Please try again.