CodeWriter: Write [Diagnostics] attribute
[vala-lang.git] / vapi / gstreamer-audio-0.10.vapi
blob444b908fb894a5d4bb58cc543c14987f4b83fc6d
1 /* gstreamer-audio-0.10.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gst", lower_case_cprefix = "gst_")]
4 namespace Gst {
5         [CCode (cheader_filename = "gst/audio/gstaudioclock.h")]
6         public class AudioClock : Gst.SystemClock {
7                 public void* abidata;
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);
16         }
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);
24                 [NoWrapper]
25                 public virtual bool setup (Gst.RingBufferSpec format);
26         }
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 ();
32                 [NoWrapper]
33                 public virtual bool close ();
34                 [NoWrapper]
35                 public virtual uint delay ();
36                 [NoWrapper]
37                 public virtual bool open ();
38                 [NoWrapper]
39                 public virtual bool prepare (Gst.RingBufferSpec spec);
40                 [NoWrapper]
41                 public virtual void reset ();
42                 [NoWrapper]
43                 public virtual bool unprepare ();
44                 [NoWrapper]
45                 public virtual uint write (void* data, uint length);
46         }
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 ();
52                 [NoWrapper]
53                 public virtual bool close ();
54                 [NoWrapper]
55                 public virtual uint delay ();
56                 [NoWrapper]
57                 public virtual bool open ();
58                 [NoWrapper]
59                 public virtual bool prepare (Gst.RingBufferSpec spec);
60                 [NoWrapper]
61                 public virtual uint read (void* data, uint length);
62                 [NoWrapper]
63                 public virtual void reset ();
64                 [NoWrapper]
65                 public virtual bool unprepare ();
66         }
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);
79                 [NoAccessorMethod]
80                 public int64 buffer_time { get; set; }
81                 [NoAccessorMethod]
82                 public bool can_activate_pull { get; set; }
83                 [NoAccessorMethod]
84                 public int64 drift_tolerance { get; set; }
85                 [NoAccessorMethod]
86                 public int64 latency_time { get; set; }
87                 public bool provide_clock { get; set; }
88                 public Gst.BaseAudioSinkSlaveMethod slave_method { get; set; }
89         }
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);
102                 [NoAccessorMethod]
103                 public int64 actual_buffer_time { get; }
104                 [NoAccessorMethod]
105                 public int64 actual_latency_time { get; }
106                 [NoAccessorMethod]
107                 public int64 buffer_time { get; set; }
108                 [NoAccessorMethod]
109                 public int64 latency_time { get; set; }
110                 public bool provide_clock { get; set; }
111                 public Gst.BaseAudioSrcSlaveMethod slave_method { get; set; }
112         }
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;
122                 public bool open;
123                 public int samples_per_seg;
124                 public int segbase;
125                 public int segdone;
126                 public Gst.RingBufferSegState segstate;
127                 public weak Gst.RingBufferSpec spec;
128                 public int state;
129                 public int waiting;
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 ();
154                 [NoWrapper]
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 ();
162         }
163         [Compact]
164         [CCode (cheader_filename = "gst/audio/gstaudiofilter.h")]
165         public class RingBufferSpec {
166                 public bool bigend;
167                 public uint64 buffer_time;
168                 public int bytes_per_sample;
169                 public weak Gst.Caps caps;
170                 public int channels;
171                 public int depth;
172                 public Gst.BufferFormat format;
173                 public uint64 latency_time;
174                 public int rate;
175                 public int seglatency;
176                 public int segsize;
177                 public int segtotal;
178                 public bool sign;
179                 [CCode (array_length = false)]
180                 public weak uchar[] silence_sample;
181                 public Gst.BufferFormatType type;
182                 public int width;
183         }
184         [CCode (cprefix = "GST_AUDIO_CHANNEL_POSITION_", cheader_filename = "gst/audio/multichannel.h")]
185         public enum AudioChannelPosition {
186                 INVALID,
187                 FRONT_MONO,
188                 FRONT_LEFT,
189                 FRONT_RIGHT,
190                 REAR_CENTER,
191                 REAR_LEFT,
192                 REAR_RIGHT,
193                 LFE,
194                 FRONT_CENTER,
195                 FRONT_LEFT_OF_CENTER,
196                 FRONT_RIGHT_OF_CENTER,
197                 SIDE_LEFT,
198                 SIDE_RIGHT,
199                 NONE,
200                 NUM
201         }
202         [CCode (cprefix = "GST_AUDIO_FIELD_", has_type_id = false, cheader_filename = "gst/audio/audio.h")]
203         public enum AudioFieldFlag {
204                 RATE,
205                 CHANNELS,
206                 ENDIANNESS,
207                 WIDTH,
208                 DEPTH,
209                 SIGNED
210         }
211         [CCode (cprefix = "GST_BASE_AUDIO_SINK_SLAVE_", cheader_filename = "gst/audio/gstbaseaudiosink.h")]
212         public enum BaseAudioSinkSlaveMethod {
213                 RESAMPLE,
214                 SKEW,
215                 NONE
216         }
217         [CCode (cprefix = "GST_BASE_AUDIO_SRC_SLAVE_", cheader_filename = "gst/audio/audio.h")]
218         public enum BaseAudioSrcSlaveMethod {
219                 RESAMPLE,
220                 RETIMESTAMP,
221                 SKEW,
222                 NONE
223         }
224         [CCode (cprefix = "GST_", cheader_filename = "gst/audio/gstringbuffer.h")]
225         public enum BufferFormat {
226                 UNKNOWN,
227                 S8,
228                 U8,
229                 S16_LE,
230                 S16_BE,
231                 U16_LE,
232                 U16_BE,
233                 S24_LE,
234                 S24_BE,
235                 U24_LE,
236                 U24_BE,
237                 S32_LE,
238                 S32_BE,
239                 U32_LE,
240                 U32_BE,
241                 S24_3LE,
242                 S24_3BE,
243                 U24_3LE,
244                 U24_3BE,
245                 S20_3LE,
246                 S20_3BE,
247                 U20_3LE,
248                 U20_3BE,
249                 S18_3LE,
250                 S18_3BE,
251                 U18_3LE,
252                 U18_3BE,
253                 FLOAT32_LE,
254                 FLOAT32_BE,
255                 FLOAT64_LE,
256                 FLOAT64_BE,
257                 MU_LAW,
258                 A_LAW,
259                 IMA_ADPCM,
260                 MPEG,
261                 GSM,
262                 IEC958,
263                 AC3,
264                 EAC3,
265                 DTS
266         }
267         [CCode (cprefix = "GST_BUFTYPE_", cheader_filename = "gst/audio/gstringbuffer.h")]
268         public enum BufferFormatType {
269                 LINEAR,
270                 FLOAT,
271                 MU_LAW,
272                 A_LAW,
273                 IMA_ADPCM,
274                 MPEG,
275                 GSM,
276                 IEC958,
277                 AC3,
278                 EAC3,
279                 DTS
280         }
281         [CCode (cprefix = "GST_SEGSTATE_", cheader_filename = "gst/audio/gstringbuffer.h")]
282         public enum RingBufferSegState {
283                 INVALID,
284                 EMPTY,
285                 FILLED,
286                 PARTIAL
287         }
288         [CCode (cprefix = "GST_RING_BUFFER_STATE_", cheader_filename = "gst/audio/gstringbuffer.h")]
289         public enum RingBufferState {
290                 STOPPED,
291                 PAUSED,
292                 STARTED
293         }
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);