1 /* gstreamer-audio-0.10.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gst", gir_namespace = "GstAudio", gir_version = "0.10", lower_case_cprefix = "gst_")]
4 [Version (deprecated = true, replacement = "gstreamer-1.0")]
6 [CCode (cheader_filename = "gst/audio/gstaudioclock.h")]
7 public class AudioClock : Gst.SystemClock {
9 public weak Gst.AudioClockGetTimeFunc func;
10 public Gst.ClockTime last_time;
11 public void* user_data;
12 [CCode (has_construct_function = false, type = "GstClock*")]
13 public AudioClock (string name, Gst.AudioClockGetTimeFunc func);
14 public static Gst.ClockTime adjust (Gst.Clock clock, Gst.ClockTime time);
15 [CCode (has_construct_function = false, type = "GstClock*")]
16 public AudioClock.full (string name, Gst.AudioClockGetTimeFunc func, GLib.DestroyNotify destroy_notify);
17 public static Gst.ClockTime get_time (Gst.Clock clock);
18 public static void invalidate (Gst.Clock clock);
19 public void reset (Gst.ClockTime time);
21 [CCode (cheader_filename = "gst/audio/gstaudiofilter.h")]
22 public class AudioFilter : Gst.BaseTransform {
23 public weak Gst.RingBufferSpec format;
24 [CCode (has_construct_function = false)]
25 protected AudioFilter ();
26 [CCode (cname = "gst_audio_filter_class_add_pad_templates")]
27 public class void add_pad_templates (Gst.Caps allowed_caps);
29 public virtual bool setup (Gst.RingBufferSpec format);
31 [CCode (cheader_filename = "gst/audio/gstaudiosink.h")]
32 public class AudioSink : Gst.BaseAudioSink {
33 public weak GLib.Thread thread;
34 [CCode (has_construct_function = false)]
35 protected AudioSink ();
37 public virtual bool close ();
39 public virtual uint delay ();
41 public virtual bool open ();
43 public virtual bool prepare (Gst.RingBufferSpec spec);
45 public virtual void reset ();
47 public virtual bool unprepare ();
49 public virtual uint write (void* data, uint length);
51 [CCode (cheader_filename = "gst/audio/gstaudiosrc.h")]
52 public class AudioSrc : Gst.BaseAudioSrc {
53 public weak GLib.Thread thread;
54 [CCode (has_construct_function = false)]
55 protected AudioSrc ();
57 public virtual bool close ();
59 public virtual uint delay ();
61 public virtual bool open ();
63 public virtual bool prepare (Gst.RingBufferSpec spec);
65 public virtual uint read (void* data, uint length);
67 public virtual void reset ();
69 public virtual bool unprepare ();
71 [CCode (cheader_filename = "gst/audio/gstaudiosink.h")]
72 public class BaseAudioSink : Gst.BaseSink {
74 public uint64 next_sample;
75 public weak Gst.Clock provided_clock;
76 public weak Gst.RingBuffer ringbuffer;
77 [CCode (has_construct_function = false)]
78 protected BaseAudioSink ();
79 public virtual unowned Gst.RingBuffer create_ringbuffer ();
80 public int64 get_drift_tolerance ();
81 public bool get_provide_clock ();
82 public Gst.BaseAudioSinkSlaveMethod get_slave_method ();
84 public virtual unowned Gst.Buffer payload (Gst.Buffer buffer);
85 public void set_drift_tolerance (int64 drift_tolerance);
86 public void set_provide_clock (bool provide);
87 public void set_slave_method (Gst.BaseAudioSinkSlaveMethod method);
89 public int64 buffer_time { get; set; }
91 public bool can_activate_pull { get; set; }
92 public int64 drift_tolerance { get; set; }
94 public int64 latency_time { get; set; }
95 public bool provide_clock { get; set; }
96 public Gst.BaseAudioSinkSlaveMethod slave_method { get; set; }
98 [CCode (cheader_filename = "gst/audio/gstaudiosrc.h")]
99 public class BaseAudioSrc : Gst.PushSrc {
100 public weak Gst.Clock clock;
101 public uint64 next_sample;
102 public weak Gst.RingBuffer ringbuffer;
103 [CCode (has_construct_function = false)]
104 protected BaseAudioSrc ();
105 public virtual unowned Gst.RingBuffer create_ringbuffer ();
106 public bool get_provide_clock ();
107 public Gst.BaseAudioSrcSlaveMethod get_slave_method ();
108 public void set_provide_clock (bool provide);
109 public void set_slave_method (Gst.BaseAudioSrcSlaveMethod method);
111 public int64 actual_buffer_time { get; }
113 public int64 actual_latency_time { get; }
115 public int64 buffer_time { get; set; }
117 public int64 latency_time { get; set; }
118 public bool provide_clock { get; set; }
119 public Gst.BaseAudioSrcSlaveMethod slave_method { get; set; }
121 [CCode (cheader_filename = "gst/audio/gstaudiofilter.h")]
122 public class RingBuffer : Gst.Object {
123 public void* abidata;
124 public bool acquired;
125 public weak Gst.RingBufferCallback callback;
126 public void* cb_data;
127 public GLib.Cond cond;
128 public weak Gst.Buffer data;
129 public uchar empty_seg;
131 public int samples_per_seg;
134 public Gst.RingBufferSegState segstate;
135 public weak Gst.RingBufferSpec spec;
138 [CCode (has_construct_function = false)]
139 protected RingBuffer ();
140 public virtual bool acquire (Gst.RingBufferSpec spec);
141 public virtual bool activate (bool active);
142 public void advance (uint advance);
143 public void clear (int segment);
144 public virtual void clear_all ();
145 public virtual bool close_device ();
146 public virtual uint commit (uint64 sample, uchar[] data, uint len);
147 public uint commit_full (uint64 sample, uchar[] data, int in_samples, int out_samples, ref int accum);
148 public bool convert (Gst.Format src_fmt, int64 src_val, Gst.Format dest_fmt, out int64 dest_val);
149 public static void debug_spec_buff (Gst.RingBufferSpec spec);
150 public static void debug_spec_caps (Gst.RingBufferSpec spec);
151 public virtual uint delay ();
152 public bool device_is_open ();
153 public bool is_acquired ();
154 public bool is_active ();
155 public void may_start (bool allowed);
156 public virtual bool open_device ();
157 public static bool parse_caps (Gst.RingBufferSpec spec, Gst.Caps caps);
158 public virtual bool pause ();
159 public bool prepare_read (int segment, uchar readptr, int len);
160 public uint read (uint64 sample, uchar[] data, uint len);
161 public virtual bool release ();
163 public virtual bool resume ();
164 public uint64 samples_done ();
165 public void set_callback (Gst.RingBufferCallback cb);
166 public void set_flushing (bool flushing);
167 public void set_sample (uint64 sample);
168 public virtual bool start ();
169 public virtual bool stop ();
171 [CCode (cheader_filename = "gst/audio/gstaudiofilter.h")]
173 public class RingBufferSpec {
175 public uint64 buffer_time;
176 public int bytes_per_sample;
177 public weak Gst.Caps caps;
180 public Gst.BufferFormat format;
181 public uint64 latency_time;
183 public int seglatency;
187 [CCode (array_length = false)]
188 public weak uchar[] silence_sample;
189 public Gst.BufferFormatType type;
192 [CCode (cheader_filename = "gst/audio/multichannel.h", cprefix = "GST_AUDIO_CHANNEL_POSITION_")]
193 public enum AudioChannelPosition {
203 FRONT_LEFT_OF_CENTER,
204 FRONT_RIGHT_OF_CENTER,
210 [CCode (cheader_filename = "gst/audio/audio.h", cprefix = "GST_AUDIO_FIELD_", has_type_id = false)]
211 public enum AudioFieldFlag {
219 [CCode (cheader_filename = "gst/audio/gstbaseaudiosink.h", cprefix = "GST_BASE_AUDIO_SINK_SLAVE_")]
220 public enum BaseAudioSinkSlaveMethod {
225 [CCode (cheader_filename = "gst/audio/audio.h", cprefix = "GST_BASE_AUDIO_SRC_SLAVE_")]
226 public enum BaseAudioSrcSlaveMethod {
232 [CCode (cheader_filename = "gst/audio/gstringbuffer.h", cprefix = "GST_")]
233 public enum BufferFormat {
277 [CCode (cheader_filename = "gst/audio/gstringbuffer.h", cprefix = "GST_BUFTYPE_")]
278 public enum BufferFormatType {
293 [CCode (cheader_filename = "gst/audio/gstringbuffer.h", cprefix = "GST_SEGSTATE_")]
294 public enum RingBufferSegState {
300 [CCode (cheader_filename = "gst/audio/gstringbuffer.h", cprefix = "GST_RING_BUFFER_STATE_")]
301 public enum RingBufferState {
306 [CCode (cheader_filename = "gst/audio/gstaudioclock.h")]
307 public delegate Gst.ClockTime AudioClockGetTimeFunc (Gst.Clock clock);
308 [CCode (cheader_filename = "gst/audio/mixerutils.h")]
309 public delegate bool AudioMixerFilterFunc (Gst.Mixer mixer);
310 [CCode (cheader_filename = "gst/audio/gstringbuffer.h")]
311 public delegate void RingBufferCallback (Gst.RingBuffer rbuf, uchar data, uint len);
312 [CCode (cheader_filename = "gst/audio/audio.h")]
313 public const int AUDIO_DEF_RATE;
314 [CCode (cheader_filename = "gst/audio/audio.h")]
315 public const string AUDIO_FLOAT_PAD_TEMPLATE_CAPS;
316 [CCode (cheader_filename = "gst/audio/audio.h")]
317 public const string AUDIO_FLOAT_STANDARD_PAD_TEMPLATE_CAPS;
318 [CCode (cheader_filename = "gst/audio/audio.h")]
319 public const string AUDIO_INT_PAD_TEMPLATE_CAPS;
320 [CCode (cheader_filename = "gst/audio/audio.h")]
321 public const string AUDIO_INT_STANDARD_PAD_TEMPLATE_CAPS;
322 [CCode (cheader_filename = "gst/audio/audio.h")]
323 public static unowned Gst.Buffer audio_buffer_clip (Gst.Buffer buffer, Gst.Segment segment, int rate, int frame_size);
324 [CCode (cheader_filename = "gst/audio/audio.h")]
325 public static bool audio_check_channel_positions (Gst.AudioChannelPosition pos, uint channels);
326 [CCode (cheader_filename = "gst/audio/mixerutils.h")]
327 public static GLib.List<Gst.Element> audio_default_registry_mixer_filter (Gst.AudioMixerFilterFunc filter_func, bool first);
328 [CCode (cheader_filename = "gst/audio/audio.h")]
329 public static Gst.ClockTime audio_duration_from_pad_buffer (Gst.Pad pad, Gst.Buffer buf);
330 [CCode (cheader_filename = "gst/audio/multichannel.h")]
331 public static Gst.AudioChannelPosition audio_fixate_channel_positions (Gst.Structure str);
332 [CCode (cheader_filename = "gst/audio/audio.h")]
333 public static int audio_frame_byte_size (Gst.Pad pad);
334 [CCode (cheader_filename = "gst/audio/audio.h")]
335 public static long audio_frame_length (Gst.Pad pad, Gst.Buffer buf);
336 [CCode (cheader_filename = "gst/audio/audio.h")]
337 public static Gst.AudioChannelPosition audio_get_channel_positions (Gst.Structure str);
338 [CCode (cheader_filename = "gst/audio/audio.h")]
339 public static uint audio_iec61937_frame_size (Gst.RingBufferSpec spec);
340 [CCode (cheader_filename = "gst/audio/audio.h")]
341 public static bool audio_iec61937_payload (uchar src, uint src_n, uchar dst, uint dst_n, Gst.RingBufferSpec spec);
342 [CCode (cheader_filename = "gst/audio/audio.h")]
343 public static bool audio_is_buffer_framed (Gst.Pad pad, Gst.Buffer buf);
344 [CCode (cheader_filename = "gst/audio/multichannel.h")]
345 public static void audio_set_caps_channel_positions_list (Gst.Caps caps, Gst.AudioChannelPosition pos, int num_positions);
346 [CCode (cheader_filename = "gst/audio/audio.h")]
347 public static void audio_set_channel_positions (Gst.Structure str, Gst.AudioChannelPosition pos);
348 [CCode (cheader_filename = "gst/audio/multichannel.h")]
349 public static void audio_set_structure_channel_positions_list (Gst.Structure str, Gst.AudioChannelPosition pos, int num_positions);
350 [CCode (cheader_filename = "gst/audio/audio.h")]
351 public static void audio_structure_set_int (Gst.Structure structure, Gst.AudioFieldFlag flag);