Centralize logic to detect when the DPL2 decoder should be used.
This commit is contained in:
1 parent
2ff646b796
commit
08787ebc4a
5 files changed
+11
-4
No files matched your search
@@ -19,7 +19,7 @@ PulseAudio::PulseAudio() = default;
|
||||
|
||||
bool PulseAudio::Init()
|
||||
{
|
||||
m_stereo = !SConfig::GetInstance().bDPL2Decoder || SConfig::GetInstance().bDSPHLE;
|
||||
m_stereo = !SConfig::GetInstance().ShouldUseDPL2Decoder();
|
||||
m_channels = m_stereo ? 2 : 6; // will tell PA we use a Stereo or 5.0 channel setup
|
||||
|
||||
NOTICE_LOG(AUDIO, "PulseAudio backend using %d channels", m_channels);
|
||||
|
||||
Reference in new issue
Block a user