Object Hierarchy
GObject
╰── GstObject
╰── GstElement
╰── GstBaseSrc
╰── GstPushSrc
╰── GstBaseAudioSrc
╰── GstAudioSrc
Includes
#include <gst/audio/gstaudiosrc.h>
Types and Values
struct GstAudioSrc
struct GstAudioSrc;
struct GstAudioSrcClass
struct GstAudioSrcClass {
GstBaseAudioSrcClass parent_class;
/* vtable */
/* open the device with given specs */
gboolean (*open) (GstAudioSrc *src);
/* prepare resources and state to operate with the given specs */
gboolean (*prepare) (GstAudioSrc *src, GstRingBufferSpec *spec);
/* undo anything that was done in prepare() */
gboolean (*unprepare) (GstAudioSrc *src);
/* close the device */
gboolean (*close) (GstAudioSrc *src);
/* read samples from the device */
guint (*read) (GstAudioSrc *src, gpointer data, guint length);
/* get number of samples queued in the device */
guint (*delay) (GstAudioSrc *src);
/* reset the audio device, unblock from a write */
void (*reset) (GstAudioSrc *src);
};