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.ObjectGst.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

gType
GType gType [@property getter]

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.