gstaudiosink
gstaudiosink
|
|
Object Hierarchy
GObject
╰── GstObject
╰── GstElement
╰── GstBaseSink
╰── GstBaseAudioSink
╰── GstAudioSink
Includes
#include <gst/audio/gstaudiosink.h>
Types and Values
struct GstAudioSink
struct GstAudioSink;
struct GstAudioSinkClass
struct GstAudioSinkClass {
GstBaseAudioSinkClass parent_class;
/* vtable */
/* open the device with given specs */
gboolean (*open) (GstAudioSink *sink);
/* prepare resources and state to operate with the given specs */
gboolean (*prepare) (GstAudioSink *sink, GstRingBufferSpec *spec);
/* undo anything that was done in prepare() */
gboolean (*unprepare) (GstAudioSink *sink);
/* close the device */
gboolean (*close) (GstAudioSink *sink);
/* write samples to the device */
/* FIXME 0.11: change return value to gint, as most implementation use that
* already anyway */
guint (*write) (GstAudioSink *sink, gpointer data, guint length);
/* get number of samples queued in the device */
guint (*delay) (GstAudioSink *sink);
/* reset the audio device, unblock from a write */
void (*reset) (GstAudioSink *sink);
};