GstAudio.AudioBaseSrc¶
- Subclasses:
Methods¶
- Inherited:
GstBase.BaseSrc (23), Gst.Element (82), Gst.Object (27), GObject.Object (37)
- Structs:
|
|
|
Virtual Methods¶
- Inherited:
GstBase.PushSrc (3), GstBase.BaseSrc (19), Gst.Element (16), Gst.Object (1), GObject.Object (7)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
Actual configured size of audio buffer in microseconds |
||
r |
Actual configured audio latency in microseconds |
||
r/w |
Size of audio buffer in microseconds. This is the maximum amount of data that is buffered in the device and the maximum latency that the source reports. This value might be ignored by the element if necessary; see “actual-buffer-time” |
||
r/w |
The minimum amount of data to read in each iteration in microseconds. This is the minimum latency that the source reports. This value might be ignored by the element if necessary; see “actual-latency-time” |
||
r/w |
Provide a clock to be used as the global pipeline clock |
||
r/w |
Algorithm used to match the rate of the masterclock |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
buffer_time |
r |
||
clock |
r |
||
element |
r |
||
latency_time |
r |
||
next_sample |
r |
||
ringbuffer |
r |
Class Details¶
- class GstAudio.AudioBaseSrc(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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.
- create_ringbuffer()[source]¶
- Returns:
The new ringbuffer of self.
- Return type:
Create and return the
GstAudio.AudioRingBuffer
for self. This function will call the ::create_ringbuffer vmethod and will set self as the parent of the returned buffer (seeGst.Object.set_parent
()).
- get_provide_clock()[source]¶
-
Queries whether self will provide a clock or not. See also
GstAudio.AudioBaseSrc.set_provide_clock
.
- get_slave_method()[source]¶
- Returns:
The current slave method used by self.
- Return type:
Get the current slave method used by self.
- set_provide_clock(provide)[source]¶
- Parameters:
provide (
bool
) – new state
Controls whether self will provide a clock or not. If provide is
True
,Gst.Element.provide_clock
() will return a clock that reflects the datarate of self. If provide isFalse
,Gst.Element.provide_clock
() will returnNone
.
- set_slave_method(method)[source]¶
- Parameters:
method (
GstAudio.AudioBaseSrcSlaveMethod
) – the new slave method
Controls how clock slaving will be performed in self.
- do_create_ringbuffer() virtual¶
- Returns:
The new ringbuffer of src.
- Return type:
Create and return the
GstAudio.AudioRingBuffer
for src. This function will call the ::create_ringbuffer vmethod and will set src as the parent of the returned buffer (seeGst.Object.set_parent
()).
Property Details¶
- GstAudio.AudioBaseSrc.props.actual_buffer_time¶
-
Actual configured size of audio buffer in microseconds.
- GstAudio.AudioBaseSrc.props.actual_latency_time¶
-
Actual configured audio latency in microseconds.
- GstAudio.AudioBaseSrc.props.buffer_time¶
-
Size of audio buffer in microseconds. This is the maximum amount of data that is buffered in the device and the maximum latency that the source reports. This value might be ignored by the element if necessary; see “actual-buffer-time”
- GstAudio.AudioBaseSrc.props.latency_time¶
-
The minimum amount of data to read in each iteration in microseconds. This is the minimum latency that the source reports. This value might be ignored by the element if necessary; see “actual-latency-time”
- GstAudio.AudioBaseSrc.props.provide_clock¶
-
Provide a clock to be used as the global pipeline clock
- GstAudio.AudioBaseSrc.props.slave_method¶
- Name:
slave-method
- Type:
- Default Value:
- Flags:
Algorithm used to match the rate of the masterclock