2011-12-06, 00:46
megakha Wrote:Well, aplay streams multichannel audio (DTS, AC-3, ..., etc.) correctly through HDMI to my receiver. Meaning that alsa works correctly. XBMC passes movies soundtracks correctly as well. It is just multichannel music I have trouble with. "IsPassthrough - false" always in log.
ATI HD63xx (E350) => Onkyo 808.
Yes, music is taking a different path than video in the xbmc code. I'm pretty sure that the music path never attempts to use pass-through. That would be the reason why IsPassthrough is always false for music. I haven't looked at that for quite a while ...well now I have. Here's the relevant bit in PAPlayer.cpp.
Code:
/* Open the device */
m_pAudioDecoder[num] = CAudioRendererFactory::Create(
m_pCallback , //pCallback
m_channelCount [num], //iChannels
m_channelMap [num], //channelMap
m_sampleRate [num], //uiSamplesPerSec
m_bitsPerSample[num], //uiBitsPerSample
false , //bResample
true , //bIsMusic
false //bPassthrough
);
I don't have much in the way of multi-channel encoded music.