gstaudio.audio_base_src
Module for [AudioBaseSrc] class
Types 3
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.
Methods
AudioBaseSrc self()Returns `this`, for use in `with` statements.AudioBaseSrcGidBuilder builder()Get builder for [gstaudio.audiobasesrc.AudioBaseSrc] Returns: New builder objectlong actualBufferTime() @propertyGet `actualBufferTime` property. Returns: Actual configured size of audio buffer in microseconds.long actualLatencyTime() @propertyGet `actualLatencyTime` property. Returns: Actual configured audio latency in microseconds.long bufferTime() @propertyvoid bufferTime(long propval) @propertylong latencyTime() @propertyvoid latencyTime(long propval) @propertybool provideClock() @propertyvoid provideClock(bool propval) @propertygstaudio.types.AudioBaseSrcSlaveMethod slaveMethod() @propertyvoid slaveMethod(gstaudio.types.AudioBaseSrcSlaveMethod propval) @propertygstaudio.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.setParen...bool getProvideClock()Queries whether src will provide a clock or not. See also gstaudiobasesrcsetprovideclock. Returns: true if src will provide a clock.gstaudio.types.AudioBaseSrcSlaveMethod getSlaveMethod()Get the current slave method used by src. Returns: The current slave method used by src.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.Ele...void setSlaveMethod(gstaudio.types.AudioBaseSrcSlaveMethod method)Controls how clock slaving will be performed in src.Fluent builder for [gstaudio.audio_base_src.AudioBaseSrc]
Methods