Skip to content

Commit

Permalink
[PAPlayer] - tell ae the channel layout for airtunes codec
Browse files Browse the repository at this point in the history
  • Loading branch information
Memphiz committed May 11, 2012
1 parent ab175ba commit 729bf77
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions xbmc/cores/paplayer/BXAcodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,16 @@ bool BXACodec::CanInit()
{
return true;
}

CAEChannelInfo BXACodec::GetChannelInfo()
{
static enum AEChannel map[2][3] = {
{AE_CH_FC, AE_CH_NULL},
{AE_CH_FL, AE_CH_FR , AE_CH_NULL}
};

if (m_Channels > 2)
return CAEUtil::GuessChLayout(m_Channels);

return CAEChannelInfo(map[m_Channels - 1]);
}
1 change: 1 addition & 0 deletions xbmc/cores/paplayer/BXAcodec.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,6 @@ class BXACodec : public CachingCodec
virtual int64_t Seek(int64_t iSeekTime);
virtual int ReadPCM(BYTE *pBuffer, int size, int *actualsize);
virtual bool CanInit();
virtual CAEChannelInfo GetChannelInfo();
};

0 comments on commit 729bf77

Please sign in to comment.