Skip to content

Commit

Permalink
[OMXAudio] Make stereoupmix and fixed behave more like dvdplayer
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Apr 15, 2015
1 parent 4c26ccd commit 1a70af6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions xbmc/cores/omxplayer/OMXAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -599,13 +599,12 @@ bool COMXAudio::Initialize(AEAudioFormat format, OMXClock *clock, CDVDStreamInfo
if (CSettings::Get().GetString("audiooutput.audiodevice") == "PI:Both" || CSettings::Get().GetString("audiooutput.audiodevice") == "PI:Analogue")
stdLayout = AE_CH_LAYOUT_2_0;

// force out layout to stereo if input is not multichannel - it gives the receiver a chance to upmix
if (m_InputChannels <= 2)
stdLayout = AE_CH_LAYOUT_2_0;


CAEChannelInfo resolvedMap = channelMap;
resolvedMap.ResolveChannels(stdLayout);

if (CSettings::Get().GetInt("audiooutput.config") == AE_CONFIG_FIXED || (upmix && channelMap.Count() <= 2))
resolvedMap = stdLayout;

uint64_t m_dst_chan_layout = GetAVChannelLayout(resolvedMap);
uint64_t m_src_chan_layout = GetAVChannelLayout(channelMap);

Expand Down

0 comments on commit 1a70af6

Please sign in to comment.