Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ActiveAE: fix broken transcode for SPDIF if hidden channel layout has…
… more than 2 channels
  • Loading branch information
FernetMenta committed Nov 19, 2013
1 parent 89e7eba commit 15b681f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
Expand Up @@ -1994,7 +1994,7 @@ void CActiveAE::LoadSettings()
m_settings.passthoughdevice = CSettings::Get().GetString("audiooutput.passthroughdevice");

m_settings.config = CSettings::Get().GetInt("audiooutput.config");
m_settings.channels = CSettings::Get().GetInt("audiooutput.channels");
m_settings.channels = (m_sink.GetDeviceType(m_settings.device) == AE_DEVTYPE_IEC958) ? AE_CH_LAYOUT_2_0 : CSettings::Get().GetInt("audiooutput.channels");
m_settings.samplerate = CSettings::Get().GetInt("audiooutput.samplerate");

m_settings.stereoupmix = (m_settings.channels > AE_CH_LAYOUT_2_0) ? CSettings::Get().GetBool("audiooutput.stereoupmix") : false;
Expand Down

0 comments on commit 15b681f

Please sign in to comment.