From 08787ebc4a53bb9e64b3bb3c87f20e63c0d87841 Mon Sep 17 00:00:00 2001 From: LAGonauta Date: Mon, 11 Nov 2019 08:03:36 -0300 Subject: Centralize logic to detect when the DPL2 decoder should be used. --- Source/Core/AudioCommon/OpenALStream.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/Core/AudioCommon/OpenALStream.cpp') diff --git a/Source/Core/AudioCommon/OpenALStream.cpp b/Source/Core/AudioCommon/OpenALStream.cpp index 51530088b2..887e0f97f2 100644 --- a/Source/Core/AudioCommon/OpenALStream.cpp +++ b/Source/Core/AudioCommon/OpenALStream.cpp @@ -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, -- cgit v1.2.3