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

@ -37,7 +37,7 @@ bool CubebStream::Init()
if (!m_ctx)
return false;
m_stereo = !SConfig::GetInstance().bDPL2Decoder || SConfig::GetInstance().bDSPHLE;
m_stereo = !SConfig::GetInstance().ShouldUseDPL2Decoder();
cubeb_stream_params params;
params.rate = m_mixer->GetSampleRate();