Page 1 of 1

When audio output device has more channels than track

Posted: 01 May 2014 05:53
by awfulcode
Hi guys,

I'm trying to figure out the default behavior for when the audio track being decoded has less channels than the output device. So say I'm decoding a stereo track to a 5.1 output system, will it only send audio to front left and front right? Where can I see how those mappings work? Couldn't find anywhere.

Thanks!

Re: When audio output device has more channels than track

Posted: 01 May 2014 09:13
by Rémi Denis-Courmont
It depends on the audio output plugin, I think. Sending to the first two channels only is a possibility.

Re: When audio output device has more channels than track

Posted: 01 May 2014 17:13
by awfulcode
I'm actually developing with MobileVLCKit. I'm forcing fmt->i_physical_channels to 5.1 so I can grab the data from all channels for a multichannel level meter. The behavior I want is for it to only map front left and front right, leaving all other channels muted.

Re: When audio output device has more channels than track

Posted: 01 May 2014 17:57
by Rémi Denis-Courmont
That should work, though there are no warranties that it will continue to be so in the future. You should leave the channels map to stereo if you want stereo.

Re: When audio output device has more channels than track

Posted: 01 May 2014 18:30
by awfulcode
Cool. Thank you.