GstAudioSrc
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.
GstAudioSrc
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstBaseSrc ╰──GstPushSrc ╰──GstAudioBaseSrc ╰──GstAudioSrc
Base class for simple audio sources.
Members
element
		(GstAudioBaseSrc)
		–
	Class structure
GstAudioSrcClass
GstAudioSrc class. Override the vmethod to implement functionality.
Fields
parent_class
		(GstAudioBaseSrcClass)
		–
	the parent class.
GstAudio.AudioSrcClass
GstAudio.AudioSrc class. Override the vmethod to implement functionality.
Attributes
parent_class
		(GstAudio.AudioBaseSrcClass)
		–
	the parent class.
GstAudio.AudioSrcClass
GstAudio.AudioSrc class. Override the vmethod to implement functionality.
Attributes
parent_class
		(GstAudio.AudioBaseSrcClass)
		–
	the parent class.
GstAudio.AudioSrc
GObject.Object ╰──GObject.InitiallyUnowned ╰──Gst.Object ╰──Gst.Element ╰──GstBase.BaseSrc ╰──GstBase.PushSrc ╰──GstAudio.AudioBaseSrc ╰──GstAudio.AudioSrc
Base class for simple audio sources.
Members
element
		(GstAudio.AudioBaseSrc)
		–
	GstAudio.AudioSrc
GObject.Object ╰──GObject.InitiallyUnowned ╰──Gst.Object ╰──Gst.Element ╰──GstBase.BaseSrc ╰──GstBase.PushSrc ╰──GstAudio.AudioBaseSrc ╰──GstAudio.AudioSrc
Base class for simple audio sources.
Members
element
		(GstAudio.AudioBaseSrc)
		–
	Virtual Methods
close
gboolean close (GstAudioSrc * src)
close the device
Parameters:
src
–
vfunc_close
function vfunc_close(src: GstAudio.AudioSrc): {
    // javascript implementation of the 'close' virtual method
}
close the device
Parameters:
do_close
def do_close (src):
    #python implementation of the 'close' virtual method
close the device
Parameters:
delay
guint delay (GstAudioSrc * src)
the number of frames queued in the device
Parameters:
src
–
vfunc_delay
function vfunc_delay(src: GstAudio.AudioSrc): {
    // javascript implementation of the 'delay' virtual method
}
the number of frames queued in the device
Parameters:
do_delay
def do_delay (src):
    #python implementation of the 'delay' virtual method
the number of frames queued in the device
Parameters:
open
gboolean open (GstAudioSrc * src)
open the device with the specified caps
Parameters:
src
–
vfunc_open
function vfunc_open(src: GstAudio.AudioSrc): {
    // javascript implementation of the 'open' virtual method
}
open the device with the specified caps
Parameters:
do_open
def do_open (src):
    #python implementation of the 'open' virtual method
open the device with the specified caps
Parameters:
prepare
gboolean prepare (GstAudioSrc * src, GstAudioRingBufferSpec * spec)
configure device with format
Parameters:
src
–
spec
–
vfunc_prepare
function vfunc_prepare(src: GstAudio.AudioSrc, spec: GstAudio.AudioRingBufferSpec): {
    // javascript implementation of the 'prepare' virtual method
}
configure device with format
Parameters:
do_prepare
def do_prepare (src, spec):
    #python implementation of the 'prepare' virtual method
configure device with format
Parameters:
read
guint read (GstAudioSrc * src, gpointer data, guint length, GstClockTime * timestamp)
read samples from the audio device
Parameters:
src
–
data
–
length
–
timestamp
–
vfunc_read
function vfunc_read(src: GstAudio.AudioSrc, data: [ Number ], length: Number): {
    // javascript implementation of the 'read' virtual method
}
read samples from the audio device
Parameters:
Returns a tuple made of:
do_read
def do_read (src, data, length):
    #python implementation of the 'read' virtual method
read samples from the audio device
Parameters:
Returns a tuple made of:
reset
reset (GstAudioSrc * src)
unblock a read to the device and reset.
Parameters:
src
–
vfunc_reset
function vfunc_reset(src: GstAudio.AudioSrc): {
    // javascript implementation of the 'reset' virtual method
}
unblock a read to the device and reset.
Parameters:
do_reset
def do_reset (src):
    #python implementation of the 'reset' virtual method
unblock a read to the device and reset.
Parameters:
unprepare
gboolean unprepare (GstAudioSrc * src)
undo the configuration
Parameters:
src
–
vfunc_unprepare
function vfunc_unprepare(src: GstAudio.AudioSrc): {
    // javascript implementation of the 'unprepare' virtual method
}
undo the configuration
Parameters:
do_unprepare
def do_unprepare (src):
    #python implementation of the 'unprepare' virtual method
undo the configuration
Parameters:
The results of the search are