Centralize logic to detect when the DPL2 decoder should be used.

This commit is contained in:
LAGonauta
2019-11-11 08:03:36 -03:00
parent 2ff646b796
commit 08787ebc4a
5 changed files with 11 additions and 4 deletions

View File

@ -221,8 +221,7 @@ void OpenALStream::SoundLoop()
bool float32_capable = palIsExtensionPresent("AL_EXT_float32") != 0;
bool surround_capable = palIsExtensionPresent("AL_EXT_MCFORMATS") || IsCreativeXFi();
bool use_surround =
SConfig::GetInstance().bDPL2Decoder && surround_capable && !SConfig::GetInstance().bDSPHLE;
bool use_surround = SConfig::GetInstance().ShouldUseDPL2Decoder() && surround_capable;
// As there is no extension to check for 32-bit fixed point support
// and we know that only a X-Fi with hardware OpenAL supports it,