gstaudio.audio_base_sink

Module for [AudioBaseSink] class

Types 3

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

Methods
GType _gType() @property
AudioBaseSink self()Returns `this`, for use in `with` statements.
AudioBaseSinkGidBuilder builder()Get builder for [gstaudio.audiobasesink.AudioBaseSink] Returns: New builder object
ulong alignmentThreshold() @property
void alignmentThreshold(ulong propval) @property
long bufferTime() @property
void bufferTime(long propval) @property
bool canActivatePull() @property
void canActivatePull(bool propval) @property
ulong discontWait() @propertyGet `discontWait` property. Returns: A window of time in nanoseconds to wait before creating a discontinuity as a result of breaching the drift-tolerance.
void discontWait(ulong propval) @propertySet `discontWait` property. Params: propval = A window of time in nanoseconds to wait before creating a discontinuity as a result of breaching the drift-tolerance.
long driftTolerance() @propertyGet `driftTolerance` property. Returns: Controls the amount of time in microseconds that clocks are allowed to drift before resynchronisation happens.
void driftTolerance(long propval) @propertySet `driftTolerance` property. Params: propval = Controls the amount of time in microseconds that clocks are allowed to drift before resynchronisation happens.
long latencyTime() @property
void latencyTime(long propval) @property
bool provideClock() @property
void provideClock(bool propval) @property
gstaudio.audio_ring_buffer.AudioRingBuffer createRingbuffer()Create and return the #GstAudioRingBuffer for sink. This function will call the ::create_ringbuffer vmethod and will set sink as the parent of the returned buffer (see [gst.object.ObjectWrap.setPar...
gst.types.ClockTime getAlignmentThreshold()Get the current alignment threshold, in nanoseconds, used by sink. Returns: The current alignment threshold used by sink.
gst.types.ClockTime getDiscontWait()Get the current discont wait, in nanoseconds, used by sink. Returns: The current discont wait used by sink.
long getDriftTolerance()Get the current drift tolerance, in microseconds, used by sink. Returns: The current drift tolerance used by sink.
bool getProvideClock()Queries whether sink will provide a clock or not. See also gstaudiobasesinksetprovideclock. Returns: true if sink will provide a clock.
gstaudio.types.AudioBaseSinkSlaveMethod getSlaveMethod()Get the current slave method used by sink. Returns: The current slave method used by sink.
void reportDeviceFailure()Informs this base class that the audio output device has failed for some reason, causing a discontinuity (for example, because the device recovered from the error, but lost all contents of its ring...
void setAlignmentThreshold(gst.types.ClockTime alignmentThreshold)Controls the sink's alignment threshold.
void setCustomSlavingCallback(gstaudio.types.AudioBaseSinkCustomSlavingCallback callback)Sets the custom slaving callback. This callback will be invoked if the slave-method property is set to GSTAUDIOBASESINKSLAVE_CUSTOM and the audio sink receives and plays samples.
void setDiscontWait(gst.types.ClockTime discontWait)Controls how long the sink will wait before creating a discontinuity.
void setDriftTolerance(long driftTolerance)Controls the sink's drift tolerance.
void setProvideClock(bool provide)Controls whether sink will provide a clock or not. If provide is true, [gst.element.Element.provideClock] will return a clock that reflects the datarate of sink. If provide is false, [gst.element.E...
void setSlaveMethod(gstaudio.types.AudioBaseSinkSlaveMethod method)Controls how clock slaving will be performed in sink.
Constructors
this(void * ptr, Flag!"Take" take)
Methods
T alignmentThreshold(ulong propval)
T bufferTime(long propval)
T canActivatePull(bool propval)
T discontWait(ulong propval)Set `discontWait` property. Params: propval = A window of time in nanoseconds to wait before creating a discontinuity as a result of breaching the drift-tolerance. Returns: Builder instance for flu...
T driftTolerance(long propval)Set `driftTolerance` property. Params: propval = Controls the amount of time in microseconds that clocks are allowed to drift before resynchronisation happens. Returns: Builder instance for fluent ...
T latencyTime(long propval)
T provideClock(bool propval)

Fluent builder for [gstaudio.audio_base_sink.AudioBaseSink]