Debian Codegraph @

src/audio/openal/castleinternalopenal_altypes.inc

raw
1 {%MainUnit castleinternalopenal.pas}
2
3 { translation of AL/altypes.h }
4
5 type
6
7 {* OpenAL 8bit bool type. }
8 TALboolean = ByteBool;
9 PALboolean = ^TALboolean;
10
11 {* OpenAL 8bit signed byte. }
12 TALbyte = CChar;
13 PALbyte = ^TALbyte;
14
15 {* OpenAL 8bit unsigned byte. }
16 TALubyte = CUChar;
17 PALubyte = ^TALubyte;
18
19 {* OpenAL 16bit signed short integer type. }
20 TALshort = CShort;
21 PALshort = ^TALshort;
22
23 {* OpenAL 16bit unsigned short integer type. }
24 TALushort = CUShort;
25 PALushort = ^TALushort;
26
27 {* OpenAL 32bit unsigned integer type. }
28 TALuint = CUInt;
29 PALuint = ^TALuint;
30
31 {* OpenAL 32bit signed integer type. }
32 TALint = CInt;
33 PALint = ^TALint;
34
35 {* OpenAL 32bit floating point type. }
36 TALfloat = CFloat;
37 PALfloat = ^TALfloat;
38
39 {* OpenAL 64bit double point type. }
40 TALdouble = CDouble;
41 PALdouble = ^TALdouble;
42
43 {* OpenAL 32bit type. }
44 TALsizei = CInt;
45 PALsizei = ^TALsizei;
46
47 {* OpenAL void type (for params, not returns). }
48 { TALvoid = void;
49 PALvoid = ^TALvoid; } { }
50 PALvoid = Pointer;
51
52 {* OpenAL enumerations. }
53 TALenum = CInt;
54 PALenum = ^TALenum;
55
56 {* OpenAL bitfields. }
57 TALbitfield = CUInt;
58 PALbitfield = ^TALbitfield;
59
60 {* OpenAL clamped float. }
61 TALclampf = TALfloat;
62 PALclampf = ^TALclampf;
63
64 {* Openal clamped double. }
65 TALclampd = TALdouble;
66 PALclampd = ^TALclampd;
67
68 const
69
70 { Enumerant values begin at column 50. No tabs. }
71
72 { bad value }
73 AL_INVALID = -1;
74
75 AL_NONE = 0;
76
77 { Boolean False. }
78 AL_FALSE = 0;
79
80 {* Boolean True. }
81 AL_TRUE = 1;
82
83 {*
84 * Indicate the type of AL_SOURCE.
85 * Sources can be spatialized
86 }
87 // TODO: constant conflict between OpenAL 1.1 and sample implementation (1.0),
88 // sample implementation is below.
89 //AL_SOURCE_TYPE = $0200;
90
91 {* Indicate Source has relative coordinates. }
92 AL_SOURCE_RELATIVE = $0202;
93
94 {*
95 * Directional source, inner cone angle, in degrees.
96 * Range: [0-360]
97 * Default: 360
98 }
99 AL_CONE_INNER_ANGLE = $1001;
100
101 {*
102 * Directional source, outer cone angle, in degrees.
103 * Range: [0-360]
104 * Default: 360
105 }
106 AL_CONE_OUTER_ANGLE = $1002;
107
108 {*
109 * Specify the pitch to be applied, either at source,
110 * or on mixer results, at listener.
111 * Range: [0.5-2.0]
112 * Default: 1.0
113 }
114 AL_PITCH = $1003;
115
116 {*
117 * Specify the current location in three dimensional space.
118 * OpenAL, like OpenGL, uses a right handed coordinate system,
119 * where in a frontal default view X (thumb) points right,
120 * Y points up (index finger), and Z points towards the
121 * viewer/camera (middle finger).
122 * To switch from a left handed coordinate system, flip the
123 * sign on the Z coordinate.
124 * Listener position is always in the world coordinate system.
125 }
126 AL_POSITION = $1004;
127
128 {* Specify the current direction. }
129 AL_DIRECTION = $1005;
130
131 {* Specify the current velocity in three dimensional space. }
132 AL_VELOCITY = $1006;
133
134 {*
135 * Indicate whether source is looping.
136 * Type: ALboolean?
137 * Range: [AL_TRUE, AL_FALSE]
138 * Default: FALSE.
139 }
140 AL_LOOPING = $1007;
141
142 {*
143 * Indicate whether source is meant to be streaming.
144 * Type: ALboolean?
145 * Range: [AL_TRUE, AL_FALSE]
146 * Default: FALSE.
147 }
148 // TODO: constant conflict between OpenAL 1.1 and sample implementation (1.0),
149 // sample implementation is below.
150 //AL_STREAMING = $1008;
151
152 {*
153 * Indicate the buffer to provide sound samples.
154 * Type: ALuint.
155 * Range: any valid Buffer id.
156 }
157 AL_BUFFER = $1009;
158
159 {*
160 * Indicate the gain (volume amplification) applied.
161 * Type: ALfloat.
162 * Range: ]0.0- ]
163 * A value of 1.0 means un-attenuated/unchanged.
164 * Each division by 2 equals an attenuation of -6dB.
165 * Each multiplicaton with 2 equals an amplification of +6dB.
166 * A value of 0.0 is meaningless with respect to a logarithmic
167 * scale; it is interpreted as zero volume - the channel
168 * is effectively disabled.
169 }
170 AL_GAIN = $100A;
171
172 { byte offset into source (in canon format). -1 if source
173 * is not playing. Don't set this, get this.
174 *
175 * Type: ALint
176 * Range: -1 - +inf
177 }
178 AL_BYTE_LOKI = $100C;
179
180 {
181 * Indicate minimum source attenuation
182 * Type: ALfloat
183 * Range: [0.0 - 1.0]
184 *
185 * Logarthmic
186 }
187 AL_MIN_GAIN = $100D;
188
189 {*
190 * Indicate maximum source attenuation
191 * Type: ALfloat
192 * Range: [0.0 - 1.0]
193 *
194 * Logarthmic
195 }
196 AL_MAX_GAIN = $100E;
197
198 {*
199 * Indicate listener orientation.
200 *
201 * at/up
202 }
203 AL_ORIENTATION = $100F;
204
205 {*
206 * Source state information.
207 }
208 AL_SOURCE_STATE = $1010;
209 AL_INITIAL = $1011;
210 AL_PLAYING = $1012;
211 AL_PAUSED = $1013;
212 AL_STOPPED = $1014;
213
214 {*
215 * Buffer Queue params
216 }
217 AL_BUFFERS_QUEUED = $1015;
218 AL_BUFFERS_PROCESSED = $1016;
219
220 {*
221 * Buffer states
222 }
223 AL_PENDING = $1017;
224 AL_PROCESSED = $1018;
225
226
227 {* Sound samples: format specifier. }
228 AL_FORMAT_MONO8 = $1100;
229 AL_FORMAT_MONO16 = $1101;
230 AL_FORMAT_STEREO8 = $1102;
231 AL_FORMAT_STEREO16 = $1103;
232
233 {*
234 * source specific reference distance
235 * Type: ALfloat
236 * Range: 0.0 - +inf
237 *
238 * At 0.0, no distance attenuation occurs. Default is
239 * 1.0.
240 }
241 AL_REFERENCE_DISTANCE = $1020;
242
243 {*
244 * source specific rolloff factor
245 * Type: ALfloat
246 * Range: 0.0 - +inf
247 *
248 }
249 AL_ROLLOFF_FACTOR = $1021;
250
251 {*
252 * Directional source, outer cone gain.
253 *
254 * Default: 0.0
255 * Range: [0.0 - 1.0]
256 * Logarithmic
257 }
258 AL_CONE_OUTER_GAIN = $1022;
259
260 {*
261 * Indicate distance above which sources are not
262 * attenuated using the inverse clamped distance model.
263 *
264 * Default: +inf
265 * Type: ALfloat
266 * Range: 0.0 - +inf
267 }
268 AL_MAX_DISTANCE = $1023;
269
270 {** Source buffer position, in seconds.
271
272 Probably only since OpenAL 1.1. *}
273 AL_SEC_OFFSET = $1024;
274
275 {** Source buffer position, in sample frames.
276
277 Probably only since OpenAL 1.1. *}
278 AL_SAMPLE_OFFSET = $1025;
279
280 {** Source buffer position, in bytes.
281
282 Probably only since OpenAL 1.1. *}
283 AL_BYTE_OFFSET = $1026;
284
285 {**
286 * Source type (query only).
287 * Type: ALint
288 * Range: [AL_STATIC, AL_STREAMING, AL_UNDETERMINED]
289 *
290 * A Source is Static if a Buffer has been attached using AL_BUFFER.
291 *
292 * A Source is Streaming if one or more Buffers have been attached using
293 * alSourceQueueBuffers.
294 *
295 * A Source is Undetermined when it has the NULL buffer attached using
296 * AL_BUFFER.
297 *}
298 // TODO: constant conflict between OpenAL 1.1 and sample implementation,
299 // 1.1 is below?
300 //AL_SOURCE_TYPE = $1027;
301
302 {** Source type value. *}
303 AL_STATIC = $1028;
304 // TODO: constant conflict between OpenAL 1.1 and sample implementation,
305 // 1.1 is below?
306 //AL_STREAMING = $1029;
307 AL_UNDETERMINED = $1030;
308
309 {*
310 * Sound samples: frequency, in units of Hertz [Hz].
311 * This is the number of samples per second. Half of the
312 * sample frequency marks the maximum significant
313 * frequency component.
314 }
315 AL_FREQUENCY = $2001;
316 AL_BITS = $2002;
317 AL_CHANNELS = $2003;
318 AL_SIZE = $2004;
319
320 {*
321 * Buffer state.
322 *
323 * Not supported for public use (yet).
324 }
325 AL_UNUSED = $2010;
326 AL_QUEUED = $2011;
327 AL_CURRENT = $2012;
328
329 {* Errors: No Error. }
330 AL_NO_ERROR = AL_FALSE;
331
332 {*
333 * Invalid Name paramater passed to AL call.
334 }
335 AL_INVALID_NAME = $A001;
336
337 {*
338 * Invalid parameter passed to AL call.
339 }
340 AL_ILLEGAL_ENUM = $A002;
341
342 {*
343 * Invalid enum parameter value.
344 }
345 AL_INVALID_VALUE = $A003;
346
347 {*
348 * Illegal call.
349 }
350 AL_ILLEGAL_COMMAND = $A004;
351
352 {*
353 * No mojo.
354 }
355 AL_OUT_OF_MEMORY = $A005;
356
357
358 {* Context strings: Vendor Name. }
359 AL_VENDOR = $B001;
360 AL_VERSION = $B002;
361 AL_RENDERER = $B003;
362 AL_EXTENSIONS = $B004;
363
364 {* Global tweakage. }
365
366 {*
367 * Doppler scale. Default 1.0
368 }
369 AL_DOPPLER_FACTOR = $C000;
370
371 {*
372 * Tweaks speed of propagation.
373 }
374 AL_DOPPLER_VELOCITY = $C001;
375
376 {*
377 * Distance scaling
378 }
379 AL_DISTANCE_SCALE = $C002;
380
381 {*
382 * Distance models
383 *
384 * used in conjunction with DistanceModel
385 *
386 * implicit: NONE, which disances distance attenuation.
387 }
388 AL_DISTANCE_MODEL = $D000;
389 AL_INVERSE_DISTANCE = $D001;
390 AL_INVERSE_DISTANCE_CLAMPED = $D002;
391 AL_LINEAR_DISTANCE = $D003; {< since OpenAL 1.1 }
392 AL_LINEAR_DISTANCE_CLAMPED = $D004; {< since OpenAL 1.1 }
393 AL_EXPONENT_DISTANCE = $D005; {< since OpenAL 1.1 }
394 AL_EXPONENT_DISTANCE_CLAMPED = $D006; {< since OpenAL 1.1 }
395
396 {*
397 * enables
398 }
399
400 { #define AL_SOME_ENABLE 0xE000 }
401
402 {* IASIG Level 2 Environment. }
403
404 {*
405 * Parameter: IASIG ROOM blah
406 * Type: intgeger
407 * Range: [-10000, 0]
408 * Default: -10000
409 }
410 AL_ENV_ROOM_IASIG = $3001;
411
412 {*
413 * Parameter: IASIG ROOM_HIGH_FREQUENCY
414 * Type: integer
415 * Range: [-10000, 0]
416 * Default: 0
417 }
418 AL_ENV_ROOM_HIGH_FREQUENCY_IASIG = $3002;
419
420 {*
421 * Parameter: IASIG ROOM_ROLLOFF_FACTOR
422 * Type: float
423 * Range: [0.0, 10.0]
424 * Default: 0.0
425 }
426 AL_ENV_ROOM_ROLLOFF_FACTOR_IASIG = $3003;
427
428 {*
429 * Parameter: IASIG DECAY_TIME
430 * Type: float
431 * Range: [0.1, 20.0]
432 * Default: 1.0
433 }
434 AL_ENV_DECAY_TIME_IASIG = $3004;
435
436 {*
437 * Parameter: IASIG DECAY_HIGH_FREQUENCY_RATIO
438 * Type: float
439 * Range: [0.1, 2.0]
440 * Default: 0.5
441 }
442 AL_ENV_DECAY_HIGH_FREQUENCY_RATIO_IASIG = $3005;
443
444 {*
445 * Parameter: IASIG REFLECTIONS
446 * Type: integer
447 * Range: [-10000, 1000]
448 * Default: -10000
449 }
450 AL_ENV_REFLECTIONS_IASIG = $3006;
451
452 {*
453 * Parameter: IASIG REFLECTIONS_DELAY
454 * Type: float
455 * Range: [0.0, 0.3]
456 * Default: 0.02
457 }
458 AL_ENV_REFLECTIONS_DELAY_IASIG = $3006;
459
460 {*
461 * Parameter: IASIG REVERB
462 * Type: integer
463 * Range: [-10000,2000]
464 * Default: -10000
465 }
466 AL_ENV_REVERB_IASIG = $3007;
467
468 {*
469 * Parameter: IASIG REVERB_DELAY
470 * Type: float
471 * Range: [0.0, 0.1]
472 * Default: 0.04
473 }
474 AL_ENV_REVERB_DELAY_IASIG = $3008;
475
476 {*
477 * Parameter: IASIG DIFFUSION
478 * Type: float
479 * Range: [0.0, 100.0]
480 * Default: 100.0
481 }
482 AL_ENV_DIFFUSION_IASIG = $3009;
483
484 {*
485 * Parameter: IASIG DENSITY
486 * Type: float
487 * Range: [0.0, 100.0]
488 * Default: 100.0
489 }
490 AL_ENV_DENSITY_IASIG = $300A;
491
492 {*
493 * Parameter: IASIG HIGH_FREQUENCY_REFERENCE
494 * Type: float
495 * Range: [20.0, 20000.0]
496 * Default: 5000.0
497 }
498 AL_ENV_HIGH_FREQUENCY_REFERENCE_IASIG = $300B;
499
500 { MP3 format.
501 See http://icculus.org/alextreg/index.php?operation=op_showext&extname=AL_EXT_mp3 }
502 AL_FORMAT_MP3_EXT = $10020;
503
504 { Ogg Vorbis format.
505 See http://icculus.org/alextreg/index.php?operation=op_showext&extname=AL_EXT_vorbis }
506 AL_FORMAT_VORBIS_EXT = $10003;