libVLC audio samples buffer format
Posted: 26 Mar 2016 23:39
I use libvlc_audio_play_cb callback for delivering audio sample to my code. My libvlc_audio_setup_cb tells me that the format is "S16N" and there are 2 channels.
There is a "count" argument in libvlc_audio_play_cb which says how many samples were delivered.
However, I can't find anywhere in VLC docs information on how samples buffer is formatted - are channels interleaved, i.e. buffer[0] is a left channel sample, buffer[1] is a right channel sample?
I also can't find information on S16N - is it 16bit PCMU native endianness?
Any links for the info would be also appreciated.
There is a "count" argument in libvlc_audio_play_cb which says how many samples were delivered.
However, I can't find anywhere in VLC docs information on how samples buffer is formatted - are channels interleaved, i.e. buffer[0] is a left channel sample, buffer[1] is a right channel sample?
I also can't find information on S16N - is it 16bit PCMU native endianness?
Any links for the info would be also appreciated.