GstAudio.AudioSink¶
- Subclasses:
None
Methods¶
Virtual Methods¶
- Inherited:
GstAudio.AudioBaseSink (2), GstBase.BaseSink (18), Gst.Element (16), Gst.Object (1), GObject.Object (7)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
element |
r |
||
thread |
r |
Class Details¶
- class GstAudio.AudioSink(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
This is the most simple base class for audio sinks that only requires subclasses to implement a set of simple functions:
open()
:Open
the device.prepare()
:Configure
the device with the specified format.write()
:Write
samples to the device.reset()
:Unblock
writes and flush the device.delay()
:Get
the number of samples written but not yet played by the device.unprepare()
:Undo
operations done by prepare.close()
:Close
the device.
All scheduling of samples and timestamps is done in this base class together with
GstAudio.AudioBaseSink
using a default implementation of aGstAudio.AudioRingBuffer
that uses threads.- do_pause() virtual¶
- do_prepare(spec) virtual¶
- Parameters:
spec (
GstAudio.AudioRingBufferSpec
) –- Return type:
- do_reset() virtual¶
- do_resume() virtual¶
- do_stop() virtual¶