GstAudioSinkClass

Members

Variables

close
bool function(GstAudioSink* sink) close;

Close the device.

delay
uint function(GstAudioSink* sink) delay;

Return how many frames are still in the device. Participates in computing the time for audio clocks and drives the synchronisation.

extension
GstAudioSinkClassExtension* extension;

class extension structure. Since: 1.18

open
bool function(GstAudioSink* sink) open;

Open the device. No configuration needs to be done at this point. This function is also used to check if the device is available.

parentClass
GstAudioBaseSinkClass parentClass;

the parent class structure.

pause
void function(GstAudioSink* sink) pause;

Pause the device and unblock write as fast as possible. For retro compatibility, the audio sink will fallback to calling reset if this vmethod is not provided. Since: 1.18

prepare
bool function(GstAudioSink* sink, GstAudioRingBufferSpec* spec) prepare;

Prepare the device to operate with the specified parameters.

reset
void function(GstAudioSink* sink) reset;

Returns as quickly as possible from a write and flush any pending samples from the device. This vmethod is deprecated. Please provide pause and stop instead.

resume
void function(GstAudioSink* sink) resume;

Resume the device. Since: 1.18

stop
void function(GstAudioSink* sink) stop;

Stop the device and unblock write as fast as possible. Pending samples are flushed from the device. For retro compatibility, the audio sink will fallback to calling reset if this vmethod is not provided. Since: 1.18

unprepare
bool function(GstAudioSink* sink) unprepare;

Undo operations done in prepare.

write
int function(GstAudioSink* sink, void* data, uint length) write;

Write data to the device. This vmethod is allowed to block until all the data is written. If such is the case then it is expected that pause, stop and reset will unblock the write when called.