2010-12-15 20:45:38 +00:00
|
|
|
/* vim: set filetype=c: */
|
2010-04-14 23:32:34 +00:00
|
|
|
% ClassName
|
|
|
|
GstAudioSrc
|
|
|
|
% TYPE_CLASS_NAME
|
|
|
|
GST_TYPE_AUDIO_SRC
|
2010-12-15 03:03:09 +00:00
|
|
|
% pads
|
|
|
|
srcpad-simple
|
2010-04-14 23:32:34 +00:00
|
|
|
% pkg-config
|
|
|
|
gstreamer-audio-0.10
|
|
|
|
% includes
|
|
|
|
#include <gst/audio/gstaudiosrc.h>
|
|
|
|
% prototypes
|
2010-12-15 03:03:09 +00:00
|
|
|
static gboolean gst_replace_open (GstAudioSrc * src);
|
2010-04-14 23:32:34 +00:00
|
|
|
static gboolean
|
2010-12-15 03:03:09 +00:00
|
|
|
gst_replace_prepare (GstAudioSrc * src, GstRingBufferSpec * spec);
|
|
|
|
static gboolean gst_replace_unprepare (GstAudioSrc * src);
|
|
|
|
static gboolean gst_replace_close (GstAudioSrc * src);
|
2010-04-14 23:32:34 +00:00
|
|
|
static guint
|
2010-12-15 03:03:09 +00:00
|
|
|
gst_replace_read (GstAudioSrc * src, gpointer data, guint length);
|
|
|
|
static guint gst_replace_delay (GstAudioSrc * src);
|
|
|
|
static void gst_replace_reset (GstAudioSrc * src);
|
2010-04-14 23:32:34 +00:00
|
|
|
% declare-class
|
2010-12-15 03:03:09 +00:00
|
|
|
GstAudioSrcClass *audio_src_class = GST_AUDIO_SRC_CLASS (klass);
|
2010-04-14 23:32:34 +00:00
|
|
|
% set-methods
|
2010-12-15 03:03:09 +00:00
|
|
|
audio_src_class->open = GST_DEBUG_FUNCPTR (gst_replace_open);
|
|
|
|
audio_src_class->prepare = GST_DEBUG_FUNCPTR (gst_replace_prepare);
|
|
|
|
audio_src_class->unprepare = GST_DEBUG_FUNCPTR (gst_replace_unprepare);
|
|
|
|
audio_src_class->close = GST_DEBUG_FUNCPTR (gst_replace_close);
|
|
|
|
audio_src_class->read = GST_DEBUG_FUNCPTR (gst_replace_read);
|
|
|
|
audio_src_class->delay = GST_DEBUG_FUNCPTR (gst_replace_delay);
|
|
|
|
audio_src_class->reset = GST_DEBUG_FUNCPTR (gst_replace_reset);
|
2010-04-14 23:32:34 +00:00
|
|
|
% methods
|
|
|
|
|
|
|
|
static gboolean
|
2010-12-15 03:03:09 +00:00
|
|
|
gst_replace_open (GstAudioSrc * src)
|
2010-04-14 23:32:34 +00:00
|
|
|
{
|
2010-12-15 03:03:09 +00:00
|
|
|
return FALSE;
|
2010-04-14 23:32:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static gboolean
|
2010-12-15 03:03:09 +00:00
|
|
|
gst_replace_prepare (GstAudioSrc * src, GstRingBufferSpec * spec)
|
2010-04-14 23:32:34 +00:00
|
|
|
{
|
2010-12-15 03:03:09 +00:00
|
|
|
return FALSE;
|
2010-04-14 23:32:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static gboolean
|
2010-12-15 03:03:09 +00:00
|
|
|
gst_replace_unprepare (GstAudioSrc * src)
|
2010-04-14 23:32:34 +00:00
|
|
|
{
|
2010-12-15 03:03:09 +00:00
|
|
|
return FALSE;
|
2010-04-14 23:32:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static gboolean
|
2010-12-15 03:03:09 +00:00
|
|
|
gst_replace_close (GstAudioSrc * src)
|
2010-04-14 23:32:34 +00:00
|
|
|
{
|
2010-12-15 03:03:09 +00:00
|
|
|
return FALSE;
|
2010-04-14 23:32:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static guint
|
2010-12-15 03:03:09 +00:00
|
|
|
gst_replace_read (GstAudioSrc * src, gpointer data, guint length)
|
2010-04-14 23:32:34 +00:00
|
|
|
{
|
2010-12-15 03:03:09 +00:00
|
|
|
return 0;
|
2010-04-14 23:32:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static guint
|
2010-12-15 03:03:09 +00:00
|
|
|
gst_replace_delay (GstAudioSrc * src)
|
2010-04-14 23:32:34 +00:00
|
|
|
{
|
2010-12-15 03:03:09 +00:00
|
|
|
return 0;
|
2010-04-14 23:32:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2010-12-15 03:03:09 +00:00
|
|
|
gst_replace_reset (GstAudioSrc * src)
|
2010-04-14 23:32:34 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
% end
|