al_sys/
al.rs

1/* automatically generated by rust-bindgen */
2
3#![allow(dead_code,
4         non_camel_case_types,
5         non_upper_case_globals,
6         non_snake_case)]
7pub const AL_INVALID: ::std::os::raw::c_int = -1;
8pub const AL_NONE: ::std::os::raw::c_int = 0;
9pub const AL_FALSE: ::std::os::raw::c_char = 0;
10pub const AL_TRUE: ::std::os::raw::c_char = 1;
11pub const AL_SOURCE_RELATIVE: ::std::os::raw::c_int = 514;
12pub const AL_CONE_INNER_ANGLE: ::std::os::raw::c_int = 4097;
13pub const AL_CONE_OUTER_ANGLE: ::std::os::raw::c_int = 4098;
14pub const AL_PITCH: ::std::os::raw::c_int = 4099;
15pub const AL_POSITION: ::std::os::raw::c_int = 4100;
16pub const AL_DIRECTION: ::std::os::raw::c_int = 4101;
17pub const AL_VELOCITY: ::std::os::raw::c_int = 4102;
18pub const AL_LOOPING: ::std::os::raw::c_int = 4103;
19pub const AL_BUFFER: ::std::os::raw::c_int = 4105;
20pub const AL_GAIN: ::std::os::raw::c_int = 4106;
21pub const AL_MIN_GAIN: ::std::os::raw::c_int = 4109;
22pub const AL_MAX_GAIN: ::std::os::raw::c_int = 4110;
23pub const AL_ORIENTATION: ::std::os::raw::c_int = 4111;
24pub const AL_SOURCE_STATE: ::std::os::raw::c_int = 4112;
25pub const AL_INITIAL: ::std::os::raw::c_int = 4113;
26pub const AL_PLAYING: ::std::os::raw::c_int = 4114;
27pub const AL_PAUSED: ::std::os::raw::c_int = 4115;
28pub const AL_STOPPED: ::std::os::raw::c_int = 4116;
29pub const AL_BUFFERS_QUEUED: ::std::os::raw::c_int = 4117;
30pub const AL_BUFFERS_PROCESSED: ::std::os::raw::c_int = 4118;
31pub const AL_REFERENCE_DISTANCE: ::std::os::raw::c_int = 4128;
32pub const AL_ROLLOFF_FACTOR: ::std::os::raw::c_int = 4129;
33pub const AL_CONE_OUTER_GAIN: ::std::os::raw::c_int = 4130;
34pub const AL_MAX_DISTANCE: ::std::os::raw::c_int = 4131;
35pub const AL_SEC_OFFSET: ::std::os::raw::c_int = 4132;
36pub const AL_SAMPLE_OFFSET: ::std::os::raw::c_int = 4133;
37pub const AL_BYTE_OFFSET: ::std::os::raw::c_int = 4134;
38pub const AL_SOURCE_TYPE: ::std::os::raw::c_int = 4135;
39pub const AL_STATIC: ::std::os::raw::c_int = 4136;
40pub const AL_STREAMING: ::std::os::raw::c_int = 4137;
41pub const AL_UNDETERMINED: ::std::os::raw::c_int = 4144;
42pub const AL_FORMAT_MONO8: ::std::os::raw::c_int = 4352;
43pub const AL_FORMAT_MONO16: ::std::os::raw::c_int = 4353;
44pub const AL_FORMAT_STEREO8: ::std::os::raw::c_int = 4354;
45pub const AL_FORMAT_STEREO16: ::std::os::raw::c_int = 4355;
46pub const AL_FREQUENCY: ::std::os::raw::c_int = 8193;
47pub const AL_BITS: ::std::os::raw::c_int = 8194;
48pub const AL_CHANNELS: ::std::os::raw::c_int = 8195;
49pub const AL_SIZE: ::std::os::raw::c_int = 8196;
50pub const AL_UNUSED: ::std::os::raw::c_int = 8208;
51pub const AL_PENDING: ::std::os::raw::c_int = 8209;
52pub const AL_PROCESSED: ::std::os::raw::c_int = 8210;
53pub const AL_NO_ERROR: ::std::os::raw::c_int = 0;
54pub const AL_INVALID_NAME: ::std::os::raw::c_int = 40961;
55pub const AL_INVALID_ENUM: ::std::os::raw::c_int = 40962;
56pub const AL_INVALID_VALUE: ::std::os::raw::c_int = 40963;
57pub const AL_INVALID_OPERATION: ::std::os::raw::c_int = 40964;
58pub const AL_OUT_OF_MEMORY: ::std::os::raw::c_int = 40965;
59pub const AL_VENDOR: ::std::os::raw::c_int = 45057;
60pub const AL_VERSION: ::std::os::raw::c_int = 45058;
61pub const AL_RENDERER: ::std::os::raw::c_int = 45059;
62pub const AL_EXTENSIONS: ::std::os::raw::c_int = 45060;
63pub const AL_DOPPLER_FACTOR: ::std::os::raw::c_int = 49152;
64pub const AL_DOPPLER_VELOCITY: ::std::os::raw::c_int = 49153;
65pub const AL_SPEED_OF_SOUND: ::std::os::raw::c_int = 49155;
66pub const AL_DISTANCE_MODEL: ::std::os::raw::c_int = 53248;
67pub const AL_INVERSE_DISTANCE: ::std::os::raw::c_int = 53249;
68pub const AL_INVERSE_DISTANCE_CLAMPED: ::std::os::raw::c_int = 53250;
69pub const AL_LINEAR_DISTANCE: ::std::os::raw::c_int = 53251;
70pub const AL_LINEAR_DISTANCE_CLAMPED: ::std::os::raw::c_int = 53252;
71pub const AL_EXPONENT_DISTANCE: ::std::os::raw::c_int = 53253;
72pub const AL_EXPONENT_DISTANCE_CLAMPED: ::std::os::raw::c_int = 53254;
73pub type ALboolean = ::std::os::raw::c_char;
74pub type ALchar = ::std::os::raw::c_char;
75pub type ALbyte = ::std::os::raw::c_char;
76pub type ALubyte = ::std::os::raw::c_uchar;
77pub type ALshort = ::std::os::raw::c_short;
78pub type ALushort = ::std::os::raw::c_ushort;
79pub type ALint = ::std::os::raw::c_int;
80pub type ALuint = ::std::os::raw::c_uint;
81pub type ALsizei = ::std::os::raw::c_int;
82pub type ALenum = ::std::os::raw::c_int;
83pub type ALfloat = f32;
84pub type ALdouble = f64;
85pub type ALvoid = ::std::os::raw::c_void;
86pub type LPALENABLE =
87    ::std::option::Option<extern "C" fn(capability: ALenum)>;
88pub type LPALDISABLE =
89    ::std::option::Option<extern "C" fn(capability: ALenum)>;
90pub type LPALISENABLED =
91    ::std::option::Option<extern "C" fn(capability: ALenum) -> ALboolean>;
92pub type LPALGETSTRING =
93    ::std::option::Option<extern "C" fn(param: ALenum) -> *const ALchar>;
94pub type LPALGETBOOLEANV =
95    ::std::option::Option<unsafe extern "C" fn(param: ALenum,
96                                               values: *mut ALboolean)>;
97pub type LPALGETINTEGERV =
98    ::std::option::Option<unsafe extern "C" fn(param: ALenum,
99                                               values: *mut ALint)>;
100pub type LPALGETFLOATV =
101    ::std::option::Option<unsafe extern "C" fn(param: ALenum,
102                                               values: *mut ALfloat)>;
103pub type LPALGETDOUBLEV =
104    ::std::option::Option<unsafe extern "C" fn(param: ALenum,
105                                               values: *mut ALdouble)>;
106pub type LPALGETBOOLEAN =
107    ::std::option::Option<extern "C" fn(param: ALenum) -> ALboolean>;
108pub type LPALGETINTEGER =
109    ::std::option::Option<extern "C" fn(param: ALenum) -> ALint>;
110pub type LPALGETFLOAT =
111    ::std::option::Option<extern "C" fn(param: ALenum) -> ALfloat>;
112pub type LPALGETDOUBLE =
113    ::std::option::Option<extern "C" fn(param: ALenum) -> ALdouble>;
114pub type LPALGETERROR = ::std::option::Option<extern "C" fn() -> ALenum>;
115pub type LPALISEXTENSIONPRESENT =
116    ::std::option::Option<unsafe extern "C" fn(extname: *const ALchar)
117                              -> ALboolean>;
118pub type LPALGETPROCADDRESS =
119    ::std::option::Option<unsafe extern "C" fn(fname: *const ALchar)
120                              -> *mut ::std::os::raw::c_void>;
121pub type LPALGETENUMVALUE =
122    ::std::option::Option<unsafe extern "C" fn(ename: *const ALchar)
123                              -> ALenum>;
124pub type LPALLISTENERF =
125    ::std::option::Option<extern "C" fn(param: ALenum, value: ALfloat)>;
126pub type LPALLISTENER3F =
127    ::std::option::Option<extern "C" fn(param: ALenum, value1: ALfloat,
128                                        value2: ALfloat, value3: ALfloat)>;
129pub type LPALLISTENERFV =
130    ::std::option::Option<unsafe extern "C" fn(param: ALenum,
131                                               values: *const ALfloat)>;
132pub type LPALLISTENERI =
133    ::std::option::Option<extern "C" fn(param: ALenum, value: ALint)>;
134pub type LPALLISTENER3I =
135    ::std::option::Option<extern "C" fn(param: ALenum, value1: ALint,
136                                        value2: ALint, value3: ALint)>;
137pub type LPALLISTENERIV =
138    ::std::option::Option<unsafe extern "C" fn(param: ALenum,
139                                               values: *const ALint)>;
140pub type LPALGETLISTENERF =
141    ::std::option::Option<unsafe extern "C" fn(param: ALenum,
142                                               value: *mut ALfloat)>;
143pub type LPALGETLISTENER3F =
144    ::std::option::Option<unsafe extern "C" fn(param: ALenum,
145                                               value1: *mut ALfloat,
146                                               value2: *mut ALfloat,
147                                               value3: *mut ALfloat)>;
148pub type LPALGETLISTENERFV =
149    ::std::option::Option<unsafe extern "C" fn(param: ALenum,
150                                               values: *mut ALfloat)>;
151pub type LPALGETLISTENERI =
152    ::std::option::Option<unsafe extern "C" fn(param: ALenum,
153                                               value: *mut ALint)>;
154pub type LPALGETLISTENER3I =
155    ::std::option::Option<unsafe extern "C" fn(param: ALenum,
156                                               value1: *mut ALint,
157                                               value2: *mut ALint,
158                                               value3: *mut ALint)>;
159pub type LPALGETLISTENERIV =
160    ::std::option::Option<unsafe extern "C" fn(param: ALenum,
161                                               values: *mut ALint)>;
162pub type LPALGENSOURCES =
163    ::std::option::Option<unsafe extern "C" fn(n: ALsizei,
164                                               sources: *mut ALuint)>;
165pub type LPALDELETESOURCES =
166    ::std::option::Option<unsafe extern "C" fn(n: ALsizei,
167                                               sources: *const ALuint)>;
168pub type LPALISSOURCE =
169    ::std::option::Option<extern "C" fn(source: ALuint) -> ALboolean>;
170pub type LPALSOURCEF =
171    ::std::option::Option<extern "C" fn(source: ALuint, param: ALenum,
172                                        value: ALfloat)>;
173pub type LPALSOURCE3F =
174    ::std::option::Option<extern "C" fn(source: ALuint, param: ALenum,
175                                        value1: ALfloat, value2: ALfloat,
176                                        value3: ALfloat)>;
177pub type LPALSOURCEFV =
178    ::std::option::Option<unsafe extern "C" fn(source: ALuint, param: ALenum,
179                                               values: *const ALfloat)>;
180pub type LPALSOURCEI =
181    ::std::option::Option<extern "C" fn(source: ALuint, param: ALenum,
182                                        value: ALint)>;
183pub type LPALSOURCE3I =
184    ::std::option::Option<extern "C" fn(source: ALuint, param: ALenum,
185                                        value1: ALint, value2: ALint,
186                                        value3: ALint)>;
187pub type LPALSOURCEIV =
188    ::std::option::Option<unsafe extern "C" fn(source: ALuint, param: ALenum,
189                                               values: *const ALint)>;
190pub type LPALGETSOURCEF =
191    ::std::option::Option<unsafe extern "C" fn(source: ALuint, param: ALenum,
192                                               value: *mut ALfloat)>;
193pub type LPALGETSOURCE3F =
194    ::std::option::Option<unsafe extern "C" fn(source: ALuint, param: ALenum,
195                                               value1: *mut ALfloat,
196                                               value2: *mut ALfloat,
197                                               value3: *mut ALfloat)>;
198pub type LPALGETSOURCEFV =
199    ::std::option::Option<unsafe extern "C" fn(source: ALuint, param: ALenum,
200                                               values: *mut ALfloat)>;
201pub type LPALGETSOURCEI =
202    ::std::option::Option<unsafe extern "C" fn(source: ALuint, param: ALenum,
203                                               value: *mut ALint)>;
204pub type LPALGETSOURCE3I =
205    ::std::option::Option<unsafe extern "C" fn(source: ALuint, param: ALenum,
206                                               value1: *mut ALint,
207                                               value2: *mut ALint,
208                                               value3: *mut ALint)>;
209pub type LPALGETSOURCEIV =
210    ::std::option::Option<unsafe extern "C" fn(source: ALuint, param: ALenum,
211                                               values: *mut ALint)>;
212pub type LPALSOURCEPLAYV =
213    ::std::option::Option<unsafe extern "C" fn(n: ALsizei,
214                                               sources: *const ALuint)>;
215pub type LPALSOURCESTOPV =
216    ::std::option::Option<unsafe extern "C" fn(n: ALsizei,
217                                               sources: *const ALuint)>;
218pub type LPALSOURCEREWINDV =
219    ::std::option::Option<unsafe extern "C" fn(n: ALsizei,
220                                               sources: *const ALuint)>;
221pub type LPALSOURCEPAUSEV =
222    ::std::option::Option<unsafe extern "C" fn(n: ALsizei,
223                                               sources: *const ALuint)>;
224pub type LPALSOURCEPLAY =
225    ::std::option::Option<extern "C" fn(source: ALuint)>;
226pub type LPALSOURCESTOP =
227    ::std::option::Option<extern "C" fn(source: ALuint)>;
228pub type LPALSOURCEREWIND =
229    ::std::option::Option<extern "C" fn(source: ALuint)>;
230pub type LPALSOURCEPAUSE =
231    ::std::option::Option<extern "C" fn(source: ALuint)>;
232pub type LPALSOURCEQUEUEBUFFERS =
233    ::std::option::Option<unsafe extern "C" fn(source: ALuint, nb: ALsizei,
234                                               buffers: *const ALuint)>;
235pub type LPALSOURCEUNQUEUEBUFFERS =
236    ::std::option::Option<unsafe extern "C" fn(source: ALuint, nb: ALsizei,
237                                               buffers: *mut ALuint)>;
238pub type LPALGENBUFFERS =
239    ::std::option::Option<unsafe extern "C" fn(n: ALsizei,
240                                               buffers: *mut ALuint)>;
241pub type LPALDELETEBUFFERS =
242    ::std::option::Option<unsafe extern "C" fn(n: ALsizei,
243                                               buffers: *const ALuint)>;
244pub type LPALISBUFFER =
245    ::std::option::Option<extern "C" fn(buffer: ALuint) -> ALboolean>;
246pub type LPALBUFFERDATA =
247    ::std::option::Option<unsafe extern "C" fn(buffer: ALuint, format: ALenum,
248                                               data: *const ALvoid,
249                                               size: ALsizei, freq: ALsizei)>;
250pub type LPALBUFFERF =
251    ::std::option::Option<extern "C" fn(buffer: ALuint, param: ALenum,
252                                        value: ALfloat)>;
253pub type LPALBUFFER3F =
254    ::std::option::Option<extern "C" fn(buffer: ALuint, param: ALenum,
255                                        value1: ALfloat, value2: ALfloat,
256                                        value3: ALfloat)>;
257pub type LPALBUFFERFV =
258    ::std::option::Option<unsafe extern "C" fn(buffer: ALuint, param: ALenum,
259                                               values: *const ALfloat)>;
260pub type LPALBUFFERI =
261    ::std::option::Option<extern "C" fn(buffer: ALuint, param: ALenum,
262                                        value: ALint)>;
263pub type LPALBUFFER3I =
264    ::std::option::Option<extern "C" fn(buffer: ALuint, param: ALenum,
265                                        value1: ALint, value2: ALint,
266                                        value3: ALint)>;
267pub type LPALBUFFERIV =
268    ::std::option::Option<unsafe extern "C" fn(buffer: ALuint, param: ALenum,
269                                               values: *const ALint)>;
270pub type LPALGETBUFFERF =
271    ::std::option::Option<unsafe extern "C" fn(buffer: ALuint, param: ALenum,
272                                               value: *mut ALfloat)>;
273pub type LPALGETBUFFER3F =
274    ::std::option::Option<unsafe extern "C" fn(buffer: ALuint, param: ALenum,
275                                               value1: *mut ALfloat,
276                                               value2: *mut ALfloat,
277                                               value3: *mut ALfloat)>;
278pub type LPALGETBUFFERFV =
279    ::std::option::Option<unsafe extern "C" fn(buffer: ALuint, param: ALenum,
280                                               values: *mut ALfloat)>;
281pub type LPALGETBUFFERI =
282    ::std::option::Option<unsafe extern "C" fn(buffer: ALuint, param: ALenum,
283                                               value: *mut ALint)>;
284pub type LPALGETBUFFER3I =
285    ::std::option::Option<unsafe extern "C" fn(buffer: ALuint, param: ALenum,
286                                               value1: *mut ALint,
287                                               value2: *mut ALint,
288                                               value3: *mut ALint)>;
289pub type LPALGETBUFFERIV =
290    ::std::option::Option<unsafe extern "C" fn(buffer: ALuint, param: ALenum,
291                                               values: *mut ALint)>;
292pub type LPALDOPPLERFACTOR =
293    ::std::option::Option<extern "C" fn(value: ALfloat)>;
294pub type LPALDOPPLERVELOCITY =
295    ::std::option::Option<extern "C" fn(value: ALfloat)>;
296pub type LPALSPEEDOFSOUND =
297    ::std::option::Option<extern "C" fn(value: ALfloat)>;
298pub type LPALDISTANCEMODEL =
299    ::std::option::Option<extern "C" fn(distanceModel: ALenum)>;