Release 0.6.0
[vala-lang.git] / vapi / gstreamer-audio-0.10.vapi
blobfe3f7f18fc341167e315ba97c47285287747f9aa
1 /* gstreamer-audio-0.10.vapi generated by lt-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 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);
12         }
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);
18                 [NoWrapper]
19                 public virtual bool setup (Gst.RingBufferSpec format);
20         }
21         [CCode (cheader_filename = "gst/audio/gstaudiosink.h")]
22         public class AudioSink : Gst.BaseAudioSink {
23                 public weak GLib.Thread thread;
24                 [NoWrapper]
25                 public virtual bool close ();
26                 [NoWrapper]
27                 public virtual uint delay ();
28                 [NoWrapper]
29                 public virtual bool open ();
30                 [NoWrapper]
31                 public virtual bool prepare (Gst.RingBufferSpec spec);
32                 [NoWrapper]
33                 public virtual void reset ();
34                 [NoWrapper]
35                 public virtual bool unprepare ();
36                 [NoWrapper]
37                 public virtual uint write (void* data, uint length);
38         }
39         [CCode (cheader_filename = "gst/audio/gstaudiosrc.h")]
40         public class AudioSrc : Gst.BaseAudioSrc {
41                 public weak GLib.Thread thread;
42                 [NoWrapper]
43                 public virtual bool close ();
44                 [NoWrapper]
45                 public virtual uint delay ();
46                 [NoWrapper]
47                 public virtual bool open ();
48                 [NoWrapper]
49                 public virtual bool prepare (Gst.RingBufferSpec spec);
50                 [NoWrapper]
51                 public virtual uint read (void* data, uint length);
52                 [NoWrapper]
53                 public virtual void reset ();
54                 [NoWrapper]
55                 public virtual bool unprepare ();
56         }
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);
67                 [NoAccessorMethod]
68                 public int64 buffer_time { get; set; }
69                 [NoAccessorMethod]
70                 public int64 latency_time { get; set; }
71                 public bool provide_clock { get; set; }
72                 public Gst.BaseAudioSinkSlaveMethod slave_method { get; set; }
73         }
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);
82                 [NoAccessorMethod]
83                 public int64 buffer_time { get; set; }
84                 [NoAccessorMethod]
85                 public int64 latency_time { get; set; }
86                 public bool provide_clock { get; set; }
87         }
88         [CCode (cheader_filename = "gst/audio/gstaudiofilter.h")]
89         public class RingBuffer : Gst.Object {
90                 public void* abidata;
91                 public bool acquired;
92                 public weak Gst.RingBufferCallback callback;
93                 public void* cb_data;
94                 public weak GLib.Cond cond;
95                 public weak Gst.Buffer data;
96                 public uchar empty_seg;
97                 public bool open;
98                 public int samples_per_seg;
99                 public int segbase;
100                 public int segdone;
101                 public Gst.RingBufferSegState segstate;
102                 public weak Gst.RingBufferSpec spec;
103                 public int state;
104                 public int waiting;
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 ();
124                 [NoWrapper]
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 ();
132         }
133         [Compact]
134         [CCode (cheader_filename = "gst/audio/gstaudiofilter.h")]
135         public class RingBufferSpec {
136                 public bool bigend;
137                 public uint64 buffer_time;
138                 public int bytes_per_sample;
139                 public weak Gst.Caps caps;
140                 public int channels;
141                 public int depth;
142                 public Gst.BufferFormat format;
143                 public uint64 latency_time;
144                 public int rate;
145                 public int segsize;
146                 public int segtotal;
147                 public bool sign;
148                 [CCode (array_length = false)]
149                 public weak uchar[] silence_sample;
150                 public Gst.BufferFormatType type;
151                 public int width;
152         }
153         [CCode (cprefix = "GST_AUDIO_CHANNEL_POSITION_", has_type_id = "0", cheader_filename = "gst/audio/multichannel.h")]
154         public enum AudioChannelPosition {
155                 INVALID,
156                 FRONT_MONO,
157                 FRONT_LEFT,
158                 FRONT_RIGHT,
159                 REAR_CENTER,
160                 REAR_LEFT,
161                 REAR_RIGHT,
162                 LFE,
163                 FRONT_CENTER,
164                 FRONT_LEFT_OF_CENTER,
165                 FRONT_RIGHT_OF_CENTER,
166                 SIDE_LEFT,
167                 SIDE_RIGHT,
168                 NONE,
169                 NUM
170         }
171         [CCode (cprefix = "GST_AUDIO_FIELD_", has_type_id = "0", cheader_filename = "gst/audio/audio.h")]
172         public enum AudioFieldFlag {
173                 RATE,
174                 CHANNELS,
175                 ENDIANNESS,
176                 WIDTH,
177                 DEPTH,
178                 SIGNED
179         }
180         [CCode (cprefix = "GST_BASE_AUDIO_SINK_SLAVE_", has_type_id = "0", cheader_filename = "gst/audio/gstbaseaudiosink.h")]
181         public enum BaseAudioSinkSlaveMethod {
182                 RESAMPLE,
183                 SKEW,
184                 NONE
185         }
186         [CCode (cprefix = "GST_", has_type_id = "0", cheader_filename = "gst/audio/gstringbuffer.h")]
187         public enum BufferFormat {
188                 UNKNOWN,
189                 S8,
190                 U8,
191                 S16_LE,
192                 S16_BE,
193                 U16_LE,
194                 U16_BE,
195                 S24_LE,
196                 S24_BE,
197                 U24_LE,
198                 U24_BE,
199                 S32_LE,
200                 S32_BE,
201                 U32_LE,
202                 U32_BE,
203                 S24_3LE,
204                 S24_3BE,
205                 U24_3LE,
206                 U24_3BE,
207                 S20_3LE,
208                 S20_3BE,
209                 U20_3LE,
210                 U20_3BE,
211                 S18_3LE,
212                 S18_3BE,
213                 U18_3LE,
214                 U18_3BE,
215                 FLOAT32_LE,
216                 FLOAT32_BE,
217                 FLOAT64_LE,
218                 FLOAT64_BE,
219                 MU_LAW,
220                 A_LAW,
221                 IMA_ADPCM,
222                 MPEG,
223                 GSM
224         }
225         [CCode (cprefix = "GST_BUFTYPE_", has_type_id = "0", cheader_filename = "gst/audio/gstringbuffer.h")]
226         public enum BufferFormatType {
227                 LINEAR,
228                 FLOAT,
229                 MU_LAW,
230                 A_LAW,
231                 IMA_ADPCM,
232                 MPEG,
233                 GSM
234         }
235         [CCode (cprefix = "GST_SEGSTATE_", has_type_id = "0", cheader_filename = "gst/audio/gstringbuffer.h")]
236         public enum RingBufferSegState {
237                 INVALID,
238                 EMPTY,
239                 FILLED,
240                 PARTIAL
241         }
242         [CCode (cprefix = "GST_RING_BUFFER_STATE_", has_type_id = "0", cheader_filename = "gst/audio/gstringbuffer.h")]
243         public enum RingBufferState {
244                 STOPPED,
245                 PAUSED,
246                 STARTED
247         }
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);