AudioBaseSrc

This is the base class for audio sources. Subclasses need to implement the ::create_ringbuffer vmethod. This base class will then take care of reading samples from the ringbuffer, synchronisation and flushing.

Constructors

this
this(void* ptr, Flag!"Take" take)

Members

Functions

createRingbuffer
gstaudio.audio_ring_buffer.AudioRingBuffer createRingbuffer()

Create and return the #GstAudioRingBuffer for src. This function will call the ::create_ringbuffer vmethod and will set src as the parent of the returned buffer (see gst.object.ObjectWrap.setParent).

getProvideClock
bool getProvideClock()

Queries whether src will provide a clock or not. See also gst_audio_base_src_set_provide_clock.

getSlaveMethod
gstaudio.types.AudioBaseSrcSlaveMethod getSlaveMethod()

Get the current slave method used by src.

self
AudioBaseSrc self()

Returns this, for use in with statements.

setProvideClock
void setProvideClock(bool provide)

Controls whether src will provide a clock or not. If provide is true, gst.element.Element.provideClock will return a clock that reflects the datarate of src. If provide is false, gst.element.Element.provideClock will return NULL.

setSlaveMethod
void setSlaveMethod(gstaudio.types.AudioBaseSrcSlaveMethod method)

Controls how clock slaving will be performed in src.

Properties

actualBufferTime
long actualBufferTime [@property getter]

Get actualBufferTime property.

actualLatencyTime
long actualLatencyTime [@property getter]

Get actualLatencyTime property.

bufferTime
long bufferTime [@property getter]
bufferTime
long bufferTime [@property setter]
gType
GType gType [@property getter]
latencyTime
long latencyTime [@property getter]
latencyTime
long latencyTime [@property setter]
provideClock
bool provideClock [@property getter]
provideClock
bool provideClock [@property setter]
slaveMethod
gstaudio.types.AudioBaseSrcSlaveMethod slaveMethod [@property getter]
slaveMethod
gstaudio.types.AudioBaseSrcSlaveMethod slaveMethod [@property setter]

Static functions

getGType
GType getGType()

Inherited Members

From PushSrc

getGType
GType getGType()
gType
GType gType [@property getter]
self
PushSrc self()

Returns this, for use in with statements.