AudioRingBuffer.read

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.

class AudioRingBuffer
uint
read

Parameters

sample ulong

the sample position of the data

data ubyte[]

where the data should be read

timestamp gst.types.ClockTime

where the timestamp is returned

Return Value

Type: uint

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

MT safe.