1 /* gstreamer-audio-0.10.vapi generated by lt-vapigen, do not modify. */
3 [CCode (cprefix = "Gst", lower_case_cprefix = "gst_")]
5 [CCode (cheader_filename = "gst/audio/gstaudioclock.h")]
6 public class AudioClock : Gst.SystemClock {
7 public weak Gst.AudioClockGetTimeFunc func;
8 public Gst.ClockTime last_time;
9 public void* user_data;
10 [CCode (type = "GstClock*", has_construct_function = false)]
11 public AudioClock (string name, Gst.AudioClockGetTimeFunc func);
13 [CCode (cheader_filename = "gst/audio/gstaudiofilter.h")]
14 public class AudioFilter : Gst.BaseTransform {
15 public weak Gst.RingBufferSpec format;
16 [CCode (cname = "gst_audio_filter_class_add_pad_templates")]
17 public class void add_pad_templates (Gst.Caps allowed_caps);
19 public virtual bool setup (Gst.RingBufferSpec format);
21 [CCode (cheader_filename = "gst/audio/gstaudiosink.h")]
22 public class AudioSink : Gst.BaseAudioSink {
23 public weak GLib.Thread thread;
25 public virtual bool close ();
27 public virtual uint delay ();
29 public virtual bool open ();
31 public virtual bool prepare (Gst.RingBufferSpec spec);
33 public virtual void reset ();
35 public virtual bool unprepare ();
37 public virtual uint write (void* data, uint length);
39 [CCode (cheader_filename = "gst/audio/gstaudiosrc.h")]
40 public class AudioSrc : Gst.BaseAudioSrc {
41 public weak GLib.Thread thread;
43 public virtual bool close ();
45 public virtual uint delay ();
47 public virtual bool open ();
49 public virtual bool prepare (Gst.RingBufferSpec spec);
51 public virtual uint read (void* data, uint length);
53 public virtual void reset ();
55 public virtual bool unprepare ();
57 [CCode (cheader_filename = "gst/audio/gstaudiosink.h")]
58 public class BaseAudioSink : Gst.BaseSink {
59 public uint64 next_sample;
60 public weak Gst.Clock provided_clock;
61 public weak Gst.RingBuffer ringbuffer;
62 public virtual unowned Gst.RingBuffer create_ringbuffer ();
63 public bool get_provide_clock ();
64 public Gst.BaseAudioSinkSlaveMethod get_slave_method ();
65 public void set_provide_clock (bool provide);
66 public void set_slave_method (Gst.BaseAudioSinkSlaveMethod method);
68 public int64 buffer_time { get; set; }
70 public int64 latency_time { get; set; }
71 public bool provide_clock { get; set; }
72 public Gst.BaseAudioSinkSlaveMethod slave_method { get; set; }
74 [CCode (cheader_filename = "gst/audio/gstaudiosrc.h")]
75 public class BaseAudioSrc : Gst.PushSrc {
76 public weak Gst.Clock clock;
77 public uint64 next_sample;
78 public weak Gst.RingBuffer ringbuffer;
79 public virtual unowned Gst.RingBuffer create_ringbuffer ();
80 public bool get_provide_clock ();
81 public void set_provide_clock (bool provide);
83 public int64 buffer_time { get; set; }
85 public int64 latency_time { get; set; }
86 public bool provide_clock { get; set; }
88 [CCode (cheader_filename = "gst/audio/gstaudiofilter.h")]
89 public class RingBuffer : Gst.Object {
92 public weak Gst.RingBufferCallback callback;
94 public weak GLib.Cond cond;
95 public weak Gst.Buffer data;
96 public uchar empty_seg;
98 public int samples_per_seg;
101 public Gst.RingBufferSegState segstate;
102 public weak Gst.RingBufferSpec spec;
105 public virtual bool acquire (Gst.RingBufferSpec spec);
106 public void advance (uint advance);
107 public void clear (int segment);
108 public void clear_all ();
109 public virtual bool close_device ();
110 public uint commit (uint64 sample, uchar[] data, uint len);
111 public uint commit_full (uint64 sample, uchar[] data, int in_samples, int out_samples, int accum);
112 public static void debug_spec_buff (Gst.RingBufferSpec spec);
113 public static void debug_spec_caps (Gst.RingBufferSpec spec);
114 public virtual uint delay ();
115 public bool device_is_open ();
116 public bool is_acquired ();
117 public void may_start (bool allowed);
118 public virtual bool open_device ();
119 public static bool parse_caps (Gst.RingBufferSpec spec, Gst.Caps caps);
120 public virtual bool pause ();
121 public bool prepare_read (int segment, uchar readptr, int len);
122 public uint read (uint64 sample, uchar[] data, uint len);
123 public virtual bool release ();
125 public virtual bool resume ();
126 public uint64 samples_done ();
127 public void set_callback (Gst.RingBufferCallback cb);
128 public void set_flushing (bool flushing);
129 public void set_sample (uint64 sample);
130 public virtual bool start ();
131 public virtual bool stop ();
134 [CCode (cheader_filename = "gst/audio/gstaudiofilter.h")]
135 public class RingBufferSpec {
137 public uint64 buffer_time;
138 public int bytes_per_sample;
139 public weak Gst.Caps caps;
142 public Gst.BufferFormat format;
143 public uint64 latency_time;
148 [CCode (array_length = false)]
149 public weak uchar[] silence_sample;
150 public Gst.BufferFormatType type;
153 [CCode (cprefix = "GST_AUDIO_CHANNEL_POSITION_", has_type_id = "0", cheader_filename = "gst/audio/multichannel.h")]
154 public enum AudioChannelPosition {
164 FRONT_LEFT_OF_CENTER,
165 FRONT_RIGHT_OF_CENTER,
171 [CCode (cprefix = "GST_AUDIO_FIELD_", has_type_id = "0", cheader_filename = "gst/audio/audio.h")]
172 public enum AudioFieldFlag {
180 [CCode (cprefix = "GST_BASE_AUDIO_SINK_SLAVE_", has_type_id = "0", cheader_filename = "gst/audio/gstbaseaudiosink.h")]
181 public enum BaseAudioSinkSlaveMethod {
186 [CCode (cprefix = "GST_", has_type_id = "0", cheader_filename = "gst/audio/gstringbuffer.h")]
187 public enum BufferFormat {
225 [CCode (cprefix = "GST_BUFTYPE_", has_type_id = "0", cheader_filename = "gst/audio/gstringbuffer.h")]
226 public enum BufferFormatType {
235 [CCode (cprefix = "GST_SEGSTATE_", has_type_id = "0", cheader_filename = "gst/audio/gstringbuffer.h")]
236 public enum RingBufferSegState {
242 [CCode (cprefix = "GST_RING_BUFFER_STATE_", has_type_id = "0", cheader_filename = "gst/audio/gstringbuffer.h")]
243 public enum RingBufferState {
248 [CCode (cheader_filename = "gst/audio/gstaudioclock.h")]
249 public delegate Gst.ClockTime AudioClockGetTimeFunc (Gst.Clock clock);
250 [CCode (cheader_filename = "gst/audio/mixerutils.h")]
251 public delegate bool AudioMixerFilterFunc (Gst.Mixer mixer);
252 [CCode (cheader_filename = "gst/audio/gstringbuffer.h")]
253 public delegate void RingBufferCallback (Gst.RingBuffer rbuf, uchar data, uint len);
254 [CCode (cheader_filename = "gst/audio/audio.h")]
255 public const int AUDIO_DEF_RATE;
256 [CCode (cheader_filename = "gst/audio/audio.h")]
257 public const string AUDIO_FLOAT_PAD_TEMPLATE_CAPS;
258 [CCode (cheader_filename = "gst/audio/audio.h")]
259 public const string AUDIO_FLOAT_STANDARD_PAD_TEMPLATE_CAPS;
260 [CCode (cheader_filename = "gst/audio/audio.h")]
261 public const string AUDIO_INT_PAD_TEMPLATE_CAPS;
262 [CCode (cheader_filename = "gst/audio/audio.h")]
263 public const string AUDIO_INT_STANDARD_PAD_TEMPLATE_CAPS;
264 [CCode (cheader_filename = "gst/audio/audio.h")]
265 public static unowned Gst.Buffer audio_buffer_clip (Gst.Buffer buffer, Gst.Segment segment, int rate, int frame_size);
266 [CCode (cheader_filename = "gst/audio/mixerutils.h")]
267 public static unowned GLib.List audio_default_registry_mixer_filter (Gst.AudioMixerFilterFunc filter_func, bool first);
268 [CCode (cheader_filename = "gst/audio/audio.h")]
269 public static Gst.ClockTime audio_duration_from_pad_buffer (Gst.Pad pad, Gst.Buffer buf);
270 [CCode (cheader_filename = "gst/audio/multichannel.h")]
271 public static Gst.AudioChannelPosition audio_fixate_channel_positions (Gst.Structure str);
272 [CCode (cheader_filename = "gst/audio/audio.h")]
273 public static int audio_frame_byte_size (Gst.Pad pad);
274 [CCode (cheader_filename = "gst/audio/audio.h")]
275 public static long audio_frame_length (Gst.Pad pad, Gst.Buffer buf);
276 [CCode (cheader_filename = "gst/audio/audio.h")]
277 public static Gst.AudioChannelPosition audio_get_channel_positions (Gst.Structure str);
278 [CCode (cheader_filename = "gst/audio/audio.h")]
279 public static bool audio_is_buffer_framed (Gst.Pad pad, Gst.Buffer buf);
280 [CCode (cheader_filename = "gst/audio/multichannel.h")]
281 public static void audio_set_caps_channel_positions_list (Gst.Caps caps, Gst.AudioChannelPosition pos, int num_positions);
282 [CCode (cheader_filename = "gst/audio/audio.h")]
283 public static void audio_set_channel_positions (Gst.Structure str, Gst.AudioChannelPosition pos);
284 [CCode (cheader_filename = "gst/audio/multichannel.h")]
285 public static void audio_set_structure_channel_positions_list (Gst.Structure str, Gst.AudioChannelPosition pos, int num_positions);
286 [CCode (cheader_filename = "gst/audio/audio.h")]
287 public static void audio_structure_set_int (Gst.Structure structure, Gst.AudioFieldFlag flag);