Caps and audio buffer layout

Blazej b.slusarek at partner.samsung.com
Wed Nov 6 01:05:08 PST 2013


Hello,

First of all, sorry if the answer to my question was already posted here,
but I couldn't find it. 

So, I need to access raw audio data. By following some tutorials I was able
to create a simple pipeline with appsink in C (gstreamer-0.10), and I can
access the data buffer from appsink's "new-buffer" callback. But I have no
idea about the actual layout of the data in the buffer. I am using the
following caps in appsink (copied from somewhere):

*"audio/x-raw-int,channels=2,rate=44100,signed=(boolean)true,width=16,depth=16,endianness=BYTE_ORDER"*

I assume I can get the data pointer with GST_BUFFER_DATA() and its size with
GST_BUFFER_SIZE(). But I have some more questions:
* how should I interpret 'width' and 'depth' parameter? 
* Is the data interleaved since there are 2 channels there? 
* what does the 'endianness=BYTE_ORDER' mean?

Thanks in advance and best regards,
Blazej




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Caps-and-audio-buffer-layout-tp4663130.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list