When audio output device has more channels than track

This forum is about all development around libVLC.
awfulcode
Blank Cone
Blank Cone
Posts: 14
Joined: 01 Oct 2013 18:45

When audio output device has more channels than track

Postby awfulcode » 01 May 2014 05:53

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!

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: When audio output device has more channels than track

Postby Rémi Denis-Courmont » 01 May 2014 09:13

It depends on the audio output plugin, I think. Sending to the first two channels only is a possibility.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

awfulcode
Blank Cone
Blank Cone
Posts: 14
Joined: 01 Oct 2013 18:45

Re: When audio output device has more channels than track

Postby awfulcode » 01 May 2014 17:13

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: When audio output device has more channels than track

Postby Rémi Denis-Courmont » 01 May 2014 17:57

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

awfulcode
Blank Cone
Blank Cone
Posts: 14
Joined: 01 Oct 2013 18:45

Re: When audio output device has more channels than track

Postby awfulcode » 01 May 2014 18:30

Cool. Thank you.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 16 guests