Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[osx] added: show endianness for kAudioFormat60958AC3

As per Core Audio data types reference, endianness is defined for
kAudioFormat60958AC3 format. Show it in log similarly to PCM
formats.
  • Loading branch information...
commit 4d4d6621c7234a95fdc83ede41a94050588abe38 1 parent 32bc1fc
@anssih authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioAEHAL.cpp
View
4 xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioAEHAL.cpp
@@ -90,7 +90,9 @@ const char* StreamDescriptionToString(AudioStreamBasicDescription desc, std::str
case kAudioFormat60958AC3:
sstr << "["
<< fourCC
- << "] AC-3/DTS for S/PDIF ("
+ << "] AC-3/DTS for S/PDIF "
+ << ((desc.mFormatFlags & kAudioFormatFlagIsBigEndian) ? "BE" : "LE")
+ << " ("
<< (UInt32)desc.mSampleRate
<< "Hz)";
str = sstr.str();
Please sign in to comment.
Something went wrong with that request. Please try again.