codegen: Install as private library for sharing between internal components
[vala-gnome.git] / vapi / gstreamer-audio-0.10.vapi
blobae29654407eb8bf25ef3024b65107e9b8a459f10
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")]
5 namespace Gst {
6         [CCode (cheader_filename = "gst/audio/gstaudioclock.h")]
7         public class AudioClock : Gst.SystemClock {
8                 public void* abidata;
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);
20         }
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);
28                 [NoWrapper]
29                 public virtual bool setup (Gst.RingBufferSpec format);
30         }
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 ();
36                 [NoWrapper]
37                 public virtual bool close ();
38                 [NoWrapper]
39                 public virtual uint delay ();
40                 [NoWrapper]
41                 public virtual bool open ();
42                 [NoWrapper]
43                 public virtual bool prepare (Gst.RingBufferSpec spec);
44                 [NoWrapper]
45                 public virtual void reset ();
46                 [NoWrapper]
47                 public virtual bool unprepare ();
48                 [NoWrapper]
49                 public virtual uint write (void* data, uint length);
50         }
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 ();
56                 [NoWrapper]
57                 public virtual bool close ();
58                 [NoWrapper]
59                 public virtual uint delay ();
60                 [NoWrapper]
61                 public virtual bool open ();
62                 [NoWrapper]
63                 public virtual bool prepare (Gst.RingBufferSpec spec);
64                 [NoWrapper]
65                 public virtual uint read (void* data, uint length);
66                 [NoWrapper]
67                 public virtual void reset ();
68                 [NoWrapper]
69                 public virtual bool unprepare ();
70         }
71         [CCode (cheader_filename = "gst/audio/gstaudiosink.h")]
72         public class BaseAudioSink : Gst.BaseSink {
73                 public void* abidata;
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 ();
83                 [NoWrapper]
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);
88                 [NoAccessorMethod]
89                 public int64 buffer_time { get; set; }
90                 [NoAccessorMethod]
91                 public bool can_activate_pull { get; set; }
92                 public int64 drift_tolerance { get; set; }
93                 [NoAccessorMethod]
94                 public int64 latency_time { get; set; }
95                 public bool provide_clock { get; set; }
96                 public Gst.BaseAudioSinkSlaveMethod slave_method { get; set; }
97         }
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);
110                 [NoAccessorMethod]
111                 public int64 actual_buffer_time { get; }
112                 [NoAccessorMethod]
113                 public int64 actual_latency_time { get; }
114                 [NoAccessorMethod]
115                 public int64 buffer_time { get; set; }
116                 [NoAccessorMethod]
117                 public int64 latency_time { get; set; }
118                 public bool provide_clock { get; set; }
119                 public Gst.BaseAudioSrcSlaveMethod slave_method { get; set; }
120         }
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;
130                 public bool open;
131                 public int samples_per_seg;
132                 public int segbase;
133                 public int segdone;
134                 public Gst.RingBufferSegState segstate;
135                 public weak Gst.RingBufferSpec spec;
136                 public int state;
137                 public int waiting;
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 ();
162                 [NoWrapper]
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 ();
170         }
171         [CCode (cheader_filename = "gst/audio/gstaudiofilter.h")]
172         [Compact]
173         public class RingBufferSpec {
174                 public bool bigend;
175                 public uint64 buffer_time;
176                 public int bytes_per_sample;
177                 public weak Gst.Caps caps;
178                 public int channels;
179                 public int depth;
180                 public Gst.BufferFormat format;
181                 public uint64 latency_time;
182                 public int rate;
183                 public int seglatency;
184                 public int segsize;
185                 public int segtotal;
186                 public bool sign;
187                 [CCode (array_length = false)]
188                 public weak uchar[] silence_sample;
189                 public Gst.BufferFormatType type;
190                 public int width;
191         }
192         [CCode (cheader_filename = "gst/audio/multichannel.h", cprefix = "GST_AUDIO_CHANNEL_POSITION_")]
193         public enum AudioChannelPosition {
194                 INVALID,
195                 FRONT_MONO,
196                 FRONT_LEFT,
197                 FRONT_RIGHT,
198                 REAR_CENTER,
199                 REAR_LEFT,
200                 REAR_RIGHT,
201                 LFE,
202                 FRONT_CENTER,
203                 FRONT_LEFT_OF_CENTER,
204                 FRONT_RIGHT_OF_CENTER,
205                 SIDE_LEFT,
206                 SIDE_RIGHT,
207                 NONE,
208                 NUM
209         }
210         [CCode (cheader_filename = "gst/audio/audio.h", cprefix = "GST_AUDIO_FIELD_", has_type_id = false)]
211         public enum AudioFieldFlag {
212                 RATE,
213                 CHANNELS,
214                 ENDIANNESS,
215                 WIDTH,
216                 DEPTH,
217                 SIGNED
218         }
219         [CCode (cheader_filename = "gst/audio/gstbaseaudiosink.h", cprefix = "GST_BASE_AUDIO_SINK_SLAVE_")]
220         public enum BaseAudioSinkSlaveMethod {
221                 RESAMPLE,
222                 SKEW,
223                 NONE
224         }
225         [CCode (cheader_filename = "gst/audio/audio.h", cprefix = "GST_BASE_AUDIO_SRC_SLAVE_")]
226         public enum BaseAudioSrcSlaveMethod {
227                 RESAMPLE,
228                 RETIMESTAMP,
229                 SKEW,
230                 NONE
231         }
232         [CCode (cheader_filename = "gst/audio/gstringbuffer.h", cprefix = "GST_")]
233         public enum BufferFormat {
234                 UNKNOWN,
235                 S8,
236                 U8,
237                 S16_LE,
238                 S16_BE,
239                 U16_LE,
240                 U16_BE,
241                 S24_LE,
242                 S24_BE,
243                 U24_LE,
244                 U24_BE,
245                 S32_LE,
246                 S32_BE,
247                 U32_LE,
248                 U32_BE,
249                 S24_3LE,
250                 S24_3BE,
251                 U24_3LE,
252                 U24_3BE,
253                 S20_3LE,
254                 S20_3BE,
255                 U20_3LE,
256                 U20_3BE,
257                 S18_3LE,
258                 S18_3BE,
259                 U18_3LE,
260                 U18_3BE,
261                 FLOAT32_LE,
262                 FLOAT32_BE,
263                 FLOAT64_LE,
264                 FLOAT64_BE,
265                 MU_LAW,
266                 A_LAW,
267                 IMA_ADPCM,
268                 MPEG,
269                 GSM,
270                 IEC958,
271                 AC3,
272                 EAC3,
273                 DTS,
274                 MPEG2_AAC,
275                 MPEG4_AAC
276         }
277         [CCode (cheader_filename = "gst/audio/gstringbuffer.h", cprefix = "GST_BUFTYPE_")]
278         public enum BufferFormatType {
279                 LINEAR,
280                 FLOAT,
281                 MU_LAW,
282                 A_LAW,
283                 IMA_ADPCM,
284                 MPEG,
285                 GSM,
286                 IEC958,
287                 AC3,
288                 EAC3,
289                 DTS,
290                 MPEG2_AAC,
291                 MPEG4_AAC
292         }
293         [CCode (cheader_filename = "gst/audio/gstringbuffer.h", cprefix = "GST_SEGSTATE_")]
294         public enum RingBufferSegState {
295                 INVALID,
296                 EMPTY,
297                 FILLED,
298                 PARTIAL
299         }
300         [CCode (cheader_filename = "gst/audio/gstringbuffer.h", cprefix = "GST_RING_BUFFER_STATE_")]
301         public enum RingBufferState {
302                 STOPPED,
303                 PAUSED,
304                 STARTED
305         }
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);