summaryrefslogtreecommitdiff
path: root/tools/element-templates/audiosink
blob: 2a1b7a421b837e8bd4f5d16831ffadd789c4e213 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* vim: set filetype=c: */
% ClassName
GstAudioSink
% TYPE_CLASS_NAME
GST_TYPE_AUDIO_SINK
% pads
sinkpad-simple
% pkg-config
gstreamer-audio-0.10
% includes
#include <gst/audio/gstaudiosink.h>
% prototypes
static gboolean gst_replace_open (GstAudioSink * sink);
static gboolean
gst_replace_prepare (GstAudioSink * sink, GstRingBufferSpec * spec);
static gboolean gst_replace_unprepare (GstAudioSink * sink);
static gboolean gst_replace_close (GstAudioSink * sink);
static guint gst_replace_write (GstAudioSink * sink, gpointer data, guint length);
static guint gst_replace_delay (GstAudioSink * sink);
static void gst_replace_reset (GstAudioSink * sink);
% declare-class
  GstAudioSinkClass *audio_sink_class = GST_AUDIO_SINK_CLASS (klass);
% set-methods
  audio_sink_class->open = GST_DEBUG_FUNCPTR (gst_replace_open);
  audio_sink_class->prepare = GST_DEBUG_FUNCPTR (gst_replace_prepare);
  audio_sink_class->unprepare = GST_DEBUG_FUNCPTR (gst_replace_unprepare);
  audio_sink_class->close = GST_DEBUG_FUNCPTR (gst_replace_close);
  audio_sink_class->write = GST_DEBUG_FUNCPTR (gst_replace_write);
  audio_sink_class->delay = GST_DEBUG_FUNCPTR (gst_replace_delay);
  audio_sink_class->reset = GST_DEBUG_FUNCPTR (gst_replace_reset);
% methods

static gboolean
gst_replace_open (GstAudioSink * sink)
{
  return FALSE;
}

static gboolean
gst_replace_prepare (GstAudioSink * sink, GstRingBufferSpec * spec)
{
  return FALSE;
}

static gboolean
gst_replace_unprepare (GstAudioSink * sink)
{
  return FALSE;
}

static gboolean
gst_replace_close (GstAudioSink * sink)
{
  return FALSE;
}

static guint
gst_replace_write (GstAudioSink * sink, gpointer data, guint length)
{
  return 0;
}

static guint
gst_replace_delay (GstAudioSink * sink)
{
  return 0;
}

static void
gst_replace_reset (GstAudioSink * sink)
{
}
% end