summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/OpenALStream.cpp
diff options
context:
space:
mode:
authorLAGonauta <lagonauta@gmail.com>2019-11-11 08:03:36 -0300
committerLAGonauta <lagonauta@gmail.com>2019-11-11 08:03:36 -0300
commit08787ebc4a53bb9e64b3bb3c87f20e63c0d87841 (patch)
treec73819d89b7d2e461c33968278922aec12642f03 /Source/Core/AudioCommon/OpenALStream.cpp
parent2ff646b79657f794390ff993b323b7b378ab08e5 (diff)
Centralize logic to detect when the DPL2 decoder should be used.
Diffstat (limited to 'Source/Core/AudioCommon/OpenALStream.cpp')
-rw-r--r--Source/Core/AudioCommon/OpenALStream.cpp3
1 files changed, 1 insertions, 2 deletions
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,