Skip to content

Commit

Permalink
AE: update Pi Sink
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Nov 22, 2015
1 parent d54f92f commit d679bd0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions xbmc/cores/AudioEngine/Sinks/AESinkPi.cpp
Expand Up @@ -186,7 +186,7 @@ bool CAESinkPi::Initialize(AEAudioFormat &format, std::string &device)
g_RBP.Initialize();

/* if we are raw need to let gpu know */
m_passthrough = AE_IS_RAW(format.m_dataFormat);
m_passthrough = m_format.m_dataFormat == AE_FMT_RAW;

m_initDevice = device;
m_initFormat = format;
Expand Down Expand Up @@ -517,9 +517,14 @@ void CAESinkPi::EnumerateDevicesEx(AEDeviceInfoList &list, bool force)
m_info.m_dataFormats.push_back(AE_FMT_FLOATP);
m_info.m_dataFormats.push_back(AE_FMT_S32NEP);
m_info.m_dataFormats.push_back(AE_FMT_S16NEP);
m_info.m_dataFormats.push_back(AE_FMT_AC3);
m_info.m_dataFormats.push_back(AE_FMT_DTS);
m_info.m_dataFormats.push_back(AE_FMT_EAC3);

m_info.m_streamTypes.push_back(CAEStreamInfo::STREAM_TYPE_AC3);
m_info.m_streamTypes.push_back(CAEStreamInfo::STREAM_TYPE_EAC3);
m_info.m_streamTypes.push_back(CAEStreamInfo::STREAM_TYPE_DTSHD_CORE);
m_info.m_streamTypes.push_back(CAEStreamInfo::STREAM_TYPE_DTS_2048);
m_info.m_streamTypes.push_back(CAEStreamInfo::STREAM_TYPE_DTS_1024);
m_info.m_streamTypes.push_back(CAEStreamInfo::STREAM_TYPE_DTS_512);
m_info.m_dataFormats.push_back(AE_FMT_RAW);

m_info.m_wantsIECPassthrough = true;
list.push_back(m_info);
Expand Down

0 comments on commit d679bd0

Please sign in to comment.