AudioRingBuffer.read

uint read(ulong sample, ubyte[] data, out gst.types.ClockTime timestamp)

Read len samples from the ringbuffer into the memory pointed to by data. The first sample should be read from position sample in the ringbuffer.

len should not be a multiple of the segment size of the ringbuffer although it is recommended.

timestamp will return the timestamp associated with the data returned.

Parameters

samplethe sample position of the data
datawhere the data should be read
timestampwhere the timestamp is returned

Returns

The number of samples read from the ringbuffer or -1 on

error.

MT safe.