gstaudio.audio_src

Module for [AudioSrc] class

Types 3

This is the most simple base class for audio sources that only requires subclasses to implement a set of simple functions:

  • open() :Open the device.
  • prepare() :Configure the device with the specified format.
  • read() :Read samples from the device.
  • reset() :Unblock reads and flush the device.
  • delay() :Get the number of samples in the device but not yet read.
  • unprepare() :Undo operations done by prepare.
  • close() :Close the device.

All scheduling of samples and timestamps is done in this base class together with #GstAudioBaseSrc using a default implementation of a #GstAudioRingBuffer that uses threads.

Methods
GType _gType() @property
AudioSrc self()Returns `this`, for use in `with` statements.
AudioSrcGidBuilder builder()Get builder for [gstaudio.audio_src.AudioSrc] Returns: New builder object
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder for [gstaudio.audio_src.AudioSrc]

Methods