[vlc-devel] [RFC] audio: let VLC decode more than 9 audio channels

Jean-Baptiste Kempf jb at videolan.org
Mon Oct 12 17:31:41 CEST 2015


On 12/10/2015 17:16, Emeric Grange wrote:
> 2015-10-07 10:42 GMT+02:00 Jean-Baptiste Kempf <jb at videolan.org>:
>> On 06 Oct, Emeric Grange wrote :
>>> These channels doesn't have to correspond to "real" output speakers, so the code
>>> related to new speakers from the WAVE_FORMAT_PCM is just here to avoid VLC
>>> segfaulting when playing these files directly.
>>
>> Then you need to work on object-based audio.
>>
>>> -    AOUT_CHAN_CENTER, AOUT_CHAN_LFE, 0
>>> +    AOUT_CHAN_CENTER, AOUT_CHAN_LFE,
>>> +
>>> +    AOUT_CHAN_SIDE_LEFT,
>>> +    AOUT_CHAN_SIDE_RIGHT,
>>
>> This is MIDDLE_LEFT, MIDDLE_RIGHT.
>
> Are you sure? What you called MIDDLE_LEFT and MIDDLE_RIGHT seems to
> reference SPEAKER_FRONT_LEFT_OF_CENTER and RIGHT. SIDE LEFT and RIGHT
> are different. (or is it the other way around?).

Yes, I think so.

See AOUT_CHAN_MIDDLELEFT and AOUT_CHAN_MIDDLERIGHT that have already 
0x100 and 0x200 in vlc_es.h


See also the 5.1 MASK.



-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device


More information about the vlc-devel mailing list