1 /* gstreamer-audio-0.10.vapi generated by 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 {
8 public weak Gst.AudioClockGetTimeFunc func;
9 public Gst.ClockTime last_time;
10 public void* user_data;
11 [CCode (type = "GstClock*", has_construct_function = false)]
12 public AudioClock (string name, Gst.AudioClockGetTimeFunc func);
13 public static Gst.ClockTime adjust (Gst.Clock clock, Gst.ClockTime time);
14 public static Gst.ClockTime get_time (Gst.Clock clock);
15 public void reset (Gst.ClockTime time);
17 [CCode (cheader_filename = "gst/audio/gstaudiofilter.h")]
18 public class AudioFilter : Gst.BaseTransform {
19 public weak Gst.RingBufferSpec format;
20 [CCode (has_construct_function = false)]
21 protected AudioFilter ();
22 [CCode (cname = "gst_audio_filter_class_add_pad_templates")]
23 public class void add_pad_templates (Gst.Caps allowed_caps);
25 public virtual bool setup (Gst.RingBufferSpec format);
27 [CCode (cheader_filename = "gst/audio/gstaudiosink.h")]
28 public class AudioSink : Gst.BaseAudioSink {
29 public weak GLib.Thread thread;
30 [CCode (has_construct_function = false)]
31 protected AudioSink ();
33 public virtual bool close ();
35 public virtual uint delay ();
37 public virtual bool open ();
39 public virtual bool prepare (Gst.RingBufferSpec spec);
41 public virtual void reset ();
43 public virtual bool unprepare ();
45 public virtual uint write (void* data, uint length);
47 [CCode (cheader_filename = "gst/audio/gstaudiosrc.h")]
48 public class AudioSrc : Gst.BaseAudioSrc {
49 public weak GLib.Thread thread;
50 [CCode (has_construct_function = false)]
51 protected AudioSrc ();
53 public virtual bool close ();
55 public virtual uint delay ();
57 public virtual bool open ();
59 public virtual bool prepare (Gst.RingBufferSpec spec);
61 public virtual uint read (void* data, uint length);
63 public virtual void reset ();
65 public virtual bool unprepare ();
67 [CCode (cheader_filename = "gst/audio/gstaudiosink.h")]
68 public class BaseAudioSink : Gst.BaseSink {
69 public uint64 next_sample;
70 public weak Gst.Clock provided_clock;
71 public weak Gst.RingBuffer ringbuffer;
72 [CCode (has_construct_function = false)]
73 protected BaseAudioSink ();
74 public virtual unowned Gst.RingBuffer create_ringbuffer ();
75 public bool get_provide_clock ();
76 public Gst.BaseAudioSinkSlaveMethod get_slave_method ();
77 public void set_provide_clock (bool provide);
78 public void set_slave_method (Gst.BaseAudioSinkSlaveMethod method);
80 public int64 buffer_time { get; set; }
82 public bool can_activate_pull { get; set; }
84 public int64 drift_tolerance { get; set; }
86 public int64 latency_time { get; set; }
87 public bool provide_clock { get; set; }
88 public Gst.BaseAudioSinkSlaveMethod slave_method { get; set; }
90 [CCode (cheader_filename = "gst/audio/gstaudiosrc.h")]
91 public class BaseAudioSrc : Gst.PushSrc {
92 public weak Gst.Clock clock;
93 public uint64 next_sample;
94 public weak Gst.RingBuffer ringbuffer;
95 [CCode (has_construct_function = false)]
96 protected BaseAudioSrc ();
97 public virtual unowned Gst.RingBuffer create_ringbuffer ();
98 public bool get_provide_clock ();
99 public Gst.BaseAudioSrcSlaveMethod get_slave_method ();
100 public void set_provide_clock (bool provide);
101 public void set_slave_method (Gst.BaseAudioSrcSlaveMethod method);
103 public int64 actual_buffer_time { get; }
105 public int64 actual_latency_time { get; }
107 public int64 buffer_time { get; set; }
109 public int64 latency_time { get; set; }
110 public bool provide_clock { get; set; }
111 public Gst.BaseAudioSrcSlaveMethod slave_method { get; set; }
113 [CCode (cheader_filename = "gst/audio/gstaudiofilter.h")]
114 public class RingBuffer : Gst.Object {
115 public void* abidata;
116 public bool acquired;
117 public weak Gst.RingBufferCallback callback;
118 public void* cb_data;
119 public weak GLib.Cond cond;
120 public weak Gst.Buffer data;
121 public uchar empty_seg;
123 public int samples_per_seg;
126 public Gst.RingBufferSegState segstate;
127 public weak Gst.RingBufferSpec spec;
130 [CCode (has_construct_function = false)]
131 protected RingBuffer ();
132 public virtual bool acquire (Gst.RingBufferSpec spec);
133 public virtual bool activate (bool active);
134 public void advance (uint advance);
135 public void clear (int segment);
136 public virtual void clear_all ();
137 public virtual bool close_device ();
138 public virtual uint commit (uint64 sample, uchar[] data, uint len);
139 public uint commit_full (uint64 sample, uchar[] data, int in_samples, int out_samples, ref int accum);
140 public bool convert (Gst.Format src_fmt, int64 src_val, Gst.Format dest_fmt, out int64 dest_val);
141 public static void debug_spec_buff (Gst.RingBufferSpec spec);
142 public static void debug_spec_caps (Gst.RingBufferSpec spec);
143 public virtual uint delay ();
144 public bool device_is_open ();
145 public bool is_acquired ();
146 public bool is_active ();
147 public void may_start (bool allowed);
148 public virtual bool open_device ();
149 public static bool parse_caps (Gst.RingBufferSpec spec, Gst.Caps caps);
150 public virtual bool pause ();
151 public bool prepare_read (int segment, uchar readptr, int len);
152 public uint read (uint64 sample, uchar[] data, uint len);
153 public virtual bool release ();
155 public virtual bool resume ();
156 public uint64 samples_done ();
157 public void set_callback (Gst.RingBufferCallback cb);
158 public void set_flushing (bool flushing);
159 public void set_sample (uint64 sample);
160 public virtual bool start ();
161 public virtual bool stop ();
164 [CCode (cheader_filename = "gst/audio/gstaudiofilter.h")]
165 public class RingBufferSpec {
167 public uint64 buffer_time;
168 public int bytes_per_sample;
169 public weak Gst.Caps caps;
172 public Gst.BufferFormat format;
173 public uint64 latency_time;
175 public int seglatency;
179 [CCode (array_length = false)]
180 public weak uchar[] silence_sample;
181 public Gst.BufferFormatType type;
184 [CCode (cprefix = "GST_AUDIO_CHANNEL_POSITION_", cheader_filename = "gst/audio/multichannel.h")]
185 public enum AudioChannelPosition {
195 FRONT_LEFT_OF_CENTER,
196 FRONT_RIGHT_OF_CENTER,
202 [CCode (cprefix = "GST_AUDIO_FIELD_", has_type_id = false, cheader_filename = "gst/audio/audio.h")]
203 public enum AudioFieldFlag {
211 [CCode (cprefix = "GST_BASE_AUDIO_SINK_SLAVE_", cheader_filename = "gst/audio/gstbaseaudiosink.h")]
212 public enum BaseAudioSinkSlaveMethod {
217 [CCode (cprefix = "GST_BASE_AUDIO_SRC_SLAVE_", cheader_filename = "gst/audio/audio.h")]
218 public enum BaseAudioSrcSlaveMethod {
224 [CCode (cprefix = "GST_", cheader_filename = "gst/audio/gstringbuffer.h")]
225 public enum BufferFormat {
267 [CCode (cprefix = "GST_BUFTYPE_", cheader_filename = "gst/audio/gstringbuffer.h")]
268 public enum BufferFormatType {
281 [CCode (cprefix = "GST_SEGSTATE_", cheader_filename = "gst/audio/gstringbuffer.h")]
282 public enum RingBufferSegState {
288 [CCode (cprefix = "GST_RING_BUFFER_STATE_", cheader_filename = "gst/audio/gstringbuffer.h")]
289 public enum RingBufferState {
294 [CCode (cheader_filename = "gst/audio/gstaudioclock.h")]
295 public delegate Gst.ClockTime AudioClockGetTimeFunc (Gst.Clock clock);
296 [CCode (cheader_filename = "gst/audio/mixerutils.h")]
297 public delegate bool AudioMixerFilterFunc (Gst.Mixer mixer);
298 [CCode (cheader_filename = "gst/audio/gstringbuffer.h")]
299 public delegate void RingBufferCallback (Gst.RingBuffer rbuf, uchar data, uint len);
300 [CCode (cheader_filename = "gst/audio/audio.h")]
301 public const int AUDIO_DEF_RATE;
302 [CCode (cheader_filename = "gst/audio/audio.h")]
303 public const string AUDIO_FLOAT_PAD_TEMPLATE_CAPS;
304 [CCode (cheader_filename = "gst/audio/audio.h")]
305 public const string AUDIO_FLOAT_STANDARD_PAD_TEMPLATE_CAPS;
306 [CCode (cheader_filename = "gst/audio/audio.h")]
307 public const string AUDIO_INT_PAD_TEMPLATE_CAPS;
308 [CCode (cheader_filename = "gst/audio/audio.h")]
309 public const string AUDIO_INT_STANDARD_PAD_TEMPLATE_CAPS;
310 [CCode (cheader_filename = "gst/audio/audio.h")]
311 public static unowned Gst.Buffer audio_buffer_clip (Gst.Buffer buffer, Gst.Segment segment, int rate, int frame_size);
312 [CCode (cheader_filename = "gst/audio/audio.h")]
313 public static bool audio_check_channel_positions (Gst.AudioChannelPosition pos, uint channels);
314 [CCode (cheader_filename = "gst/audio/mixerutils.h")]
315 public static GLib.List<Gst.Element> audio_default_registry_mixer_filter (Gst.AudioMixerFilterFunc filter_func, bool first);
316 [CCode (cheader_filename = "gst/audio/audio.h")]
317 public static Gst.ClockTime audio_duration_from_pad_buffer (Gst.Pad pad, Gst.Buffer buf);
318 [CCode (cheader_filename = "gst/audio/multichannel.h")]
319 public static Gst.AudioChannelPosition audio_fixate_channel_positions (Gst.Structure str);
320 [CCode (cheader_filename = "gst/audio/audio.h")]
321 public static int audio_frame_byte_size (Gst.Pad pad);
322 [CCode (cheader_filename = "gst/audio/audio.h")]
323 public static long audio_frame_length (Gst.Pad pad, Gst.Buffer buf);
324 [CCode (cheader_filename = "gst/audio/audio.h")]
325 public static Gst.AudioChannelPosition audio_get_channel_positions (Gst.Structure str);
326 [CCode (cheader_filename = "gst/audio/audio.h")]
327 public static bool audio_is_buffer_framed (Gst.Pad pad, Gst.Buffer buf);
328 [CCode (cheader_filename = "gst/audio/multichannel.h")]
329 public static void audio_set_caps_channel_positions_list (Gst.Caps caps, Gst.AudioChannelPosition pos, int num_positions);
330 [CCode (cheader_filename = "gst/audio/audio.h")]
331 public static void audio_set_channel_positions (Gst.Structure str, Gst.AudioChannelPosition pos);
332 [CCode (cheader_filename = "gst/audio/multichannel.h")]
333 public static void audio_set_structure_channel_positions_list (Gst.Structure str, Gst.AudioChannelPosition pos, int num_positions);
334 [CCode (cheader_filename = "gst/audio/audio.h")]
335 public static void audio_structure_set_int (Gst.Structure structure, Gst.AudioFieldFlag flag);