Permalink
Browse files

[AE/osxsink] - handle AE_FMT_FLOATP in scorestream - fixes no matchin…

…g stream was found with airplay devices as audio output
  • Loading branch information...
1 parent c638f05 commit 45292f6cfba4b19e5941bc8d478ae0ec302f4e5f @Memphiz Memphiz committed Jun 10, 2014
Showing with 4 additions and 1 deletion.
  1. +4 −1 xbmc/cores/AudioEngine/Sinks/AESinkDARWINOSX.cpp
@@ -639,7 +639,10 @@ float ScoreStream(const AudioStreamBasicDescription &desc, const AEAudioFormat &
score += 5;
else if (desc.mChannelsPerFrame > format.m_channelLayout.Count())
score += 1;
- if (format.m_dataFormat == AE_FMT_FLOAT)
+
+ //if we get float, regardless of planar or not, prefer the highest bitdepth.
+ //For streams that are non-planar we let AE know in Initialize()
+ if (format.m_dataFormat == AE_FMT_FLOAT || format.m_dataFormat == AE_FMT_FLOATP)
{ // for float, prefer the highest bitdepth we have
if (desc.mBitsPerChannel >= 16)
score += (desc.mBitsPerChannel / 8);

0 comments on commit 45292f6

Please sign in to comment.