Question about latency_time, buffer_time, etc

René Stadler mail at
Tue May 17 10:02:46 PDT 2011

On Tue, May 17, 2011 at 5:26 AM, W. Michael Petullo <mike at> wrote:

> I am having trouble understanding GstRingBuffer's latency_time,
> buffer_time, segsize and segtotal records. I've read the object's
> documentation and looked at alsasink.c. I am looking at this in the
> context of working on apexsink.

> Another thing that I have observed is that audio does not stream properly
> unless I set segtotal > 1. Setting this value to 2 ensures that the
> stream plays. Again, I am interested in finding a good place to read
> about the interaction of these four values.

Did you notice the inline comments in the GstRingBufferSpec structure? You
can find those here:

I'm a bit surprised that segtotal = 1 doesn't produce a warning or error.
The smallest meaningful ring buffer configuration is with two segments,
where one can be in use by the writer (upstream) and the other one by the
reader (consumer).

I'm not sure about apex, but I have the feeling it might make more sense to
look at pulsesink instead of alsasink for reference.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gstreamer-devel mailing list