mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 17:49:01 +00:00
Centralize logic to detect when the DPL2 decoder should be used.
This commit is contained in:
parent
2ff646b796
commit
08787ebc4a
5 changed files with 11 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue