This file is indexed.

/usr/src/castle-game-engine-4.1.1/audio/openal_altypes.inc is in castle-game-engine-src 4.1.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
{ translation of AL/altypes.h }

type

  {* OpenAL 8bit bool type. }
  TALboolean = ByteBool;
  PALboolean = ^TALboolean;

  {* OpenAL 8bit signed byte. }
  TALbyte = CChar;
  PALbyte = ^TALbyte;

  {* OpenAL 8bit unsigned byte. }
  TALubyte = CUChar;
  PALubyte = ^TALubyte;

  {* OpenAL 16bit signed short integer type. }
  TALshort = CShort;
  PALshort = ^TALshort;

  {* OpenAL 16bit unsigned short integer type. }
  TALushort = CUShort;
  PALushort = ^TALushort;

  {* OpenAL 32bit unsigned integer type. }
  TALuint = CUInt;
  PALuint = ^TALuint;

  {* OpenAL 32bit signed integer type. }
  TALint = CInt;
  PALint = ^TALint;

  {* OpenAL 32bit floating point type. }
  TALfloat = CFloat;
  PALfloat = ^TALfloat;

  {* OpenAL 64bit double point type. }
  TALdouble = CDouble;
  PALdouble = ^TALdouble;

  {* OpenAL 32bit type. }
  TALsizei = CInt;
  PALsizei = ^TALsizei;

  {* OpenAL void type (for params, not returns). }
  { TALvoid = void;
  PALvoid = ^TALvoid; } { }
  PALvoid = Pointer;

  {* OpenAL enumerations. }
  TALenum = CInt;
  PALenum = ^TALenum;

  {* OpenAL bitfields. }
  TALbitfield = CUInt;
  PALbitfield = ^TALbitfield;

  {* OpenAL clamped float. }
  TALclampf = TALfloat;
  PALclampf = ^TALclampf;

  {* Openal clamped double. }
  TALclampd = TALdouble;
  PALclampd = ^TALclampd;

const

{ Enumerant values begin at column 50. No tabs. }

  { bad value }
  AL_INVALID = -1;

  AL_NONE = 0;

  { Boolean False. }
  AL_FALSE = 0;

  {* Boolean True. }
  AL_TRUE = 1;

  {*
   * Indicate the type of AL_SOURCE.
   * Sources can be spatialized
   }
  AL_SOURCE_TYPE = $0200;

  {* Indicate Source has relative coordinates. }
  AL_SOURCE_RELATIVE = $0202;

  {*
   * Directional source, inner cone angle, in degrees.
   * Range:    [0-360]
   * Default:  360
   }
  AL_CONE_INNER_ANGLE = $1001;

  {*
   * Directional source, outer cone angle, in degrees.
   * Range:    [0-360]
   * Default:  360
   }
  AL_CONE_OUTER_ANGLE = $1002;

  {*
   * Specify the pitch to be applied, either at source,
   *  or on mixer results, at listener.
   * Range:   [0.5-2.0]
   * Default: 1.0
   }
  AL_PITCH = $1003;

  {*
   * Specify the current location in three dimensional space.
   * OpenAL, like OpenGL, uses a right handed coordinate system,
   *  where in a frontal default view X (thumb) points right,
   *  Y points up (index finger), and Z points towards the
   *  viewer/camera (middle finger).
   * To switch from a left handed coordinate system, flip the
   *  sign on the Z coordinate.
   * Listener position is always in the world coordinate system.
   }
  AL_POSITION = $1004;

  {* Specify the current direction. }
  AL_DIRECTION = $1005;

  {* Specify the current velocity in three dimensional space. }
  AL_VELOCITY = $1006;

  {*
   * Indicate whether source is looping.
   * Type: ALboolean?
   * Range:   [AL_TRUE, AL_FALSE]
   * Default: FALSE.
   }
  AL_LOOPING = $1007;

  {*
   * Indicate whether source is meant to be streaming.
   * Type: ALboolean?
   * Range:   [AL_TRUE, AL_FALSE]
   * Default: FALSE.
   }
  AL_STREAMING = $1008;

  {*
   * Indicate the buffer to provide sound samples.
   * Type: ALuint.
   * Range: any valid Buffer id.
   }
  AL_BUFFER = $1009;

  {*
   * Indicate the gain (volume amplification) applied.
   * Type:   ALfloat.
   * Range:  ]0.0-  ]
   * A value of 1.0 means un-attenuated/unchanged.
   * Each division by 2 equals an attenuation of -6dB.
   * Each multiplicaton with 2 equals an amplification of +6dB.
   * A value of 0.0 is meaningless with respect to a logarithmic
   *  scale; it is interpreted as zero volume - the channel
   *  is effectively disabled.
   }
  AL_GAIN = $100A;

  { byte offset into source (in canon format).  -1 if source
   * is not playing.  Don't set this, get this.
   *
   * Type:  ALint
   * Range: -1 - +inf
   }
  AL_BYTE_LOKI = $100C;

  {
   * Indicate minimum source attenuation
   * Type: ALfloat
   * Range:  [0.0 - 1.0]
   *
   * Logarthmic
   }
  AL_MIN_GAIN = $100D;

  {*
   * Indicate maximum source attenuation
   * Type: ALfloat
   * Range:  [0.0 - 1.0]
   *
   * Logarthmic
   }
  AL_MAX_GAIN = $100E;

  {*
   * Indicate listener orientation.
   *
   * at/up
   }
  AL_ORIENTATION = $100F;

  {*
   * Source state information.
   }
  AL_SOURCE_STATE = $1010;
  AL_INITIAL = $1011;
  AL_PLAYING = $1012;
  AL_PAUSED = $1013;
  AL_STOPPED = $1014;

  {*
   * Buffer Queue params
   }
  AL_BUFFERS_QUEUED = $1015;
  AL_BUFFERS_PROCESSED = $1016;

  {*
   * Buffer states
   }
  AL_PENDING = $1017;
  AL_PROCESSED = $1018;


  {* Sound samples: format specifier. }
  AL_FORMAT_MONO8 = $1100;
  AL_FORMAT_MONO16 = $1101;
  AL_FORMAT_STEREO8 = $1102;
  AL_FORMAT_STEREO16 = $1103;

  {*
   * source specific reference distance
   * Type: ALfloat
   * Range:  0.0 - +inf
   *
   * At 0.0, no distance attenuation occurs.  Default is
   * 1.0.
   }
  AL_REFERENCE_DISTANCE = $1020;

  {*
   * source specific rolloff factor
   * Type: ALfloat
   * Range:  0.0 - +inf
   *
   }
  AL_ROLLOFF_FACTOR = $1021;

  {*
   * Directional source, outer cone gain.
   *
   * Default:  0.0
   * Range:    [0.0 - 1.0]
   * Logarithmic
   }
  AL_CONE_OUTER_GAIN = $1022;

  {*
   * Indicate distance above which sources are not
   * attenuated using the inverse clamped distance model.
   *
   * Default: +inf
   * Type: ALfloat
   * Range:  0.0 - +inf
   }
  AL_MAX_DISTANCE = $1023;

  {*
   * Sound samples: frequency, in units of Hertz [Hz].
   * This is the number of samples per second. Half of the
   *  sample frequency marks the maximum significant
   *  frequency component.
   }
  AL_FREQUENCY = $2001;
  AL_BITS = $2002;
  AL_CHANNELS = $2003;
  AL_SIZE = $2004;

  {*
   * Buffer state.
   *
   * Not supported for public use (yet).
   }
  AL_UNUSED = $2010;
  AL_QUEUED = $2011;
  AL_CURRENT = $2012;

  {* Errors: No Error. }
  AL_NO_ERROR = AL_FALSE;

  {*
   * Invalid Name paramater passed to AL call.
   }
  AL_INVALID_NAME = $A001;

  {*
   * Invalid parameter passed to AL call.
   }
  AL_ILLEGAL_ENUM = $A002;

  {*
   * Invalid enum parameter value.
   }
  AL_INVALID_VALUE = $A003;

  {*
   * Illegal call.
   }
  AL_ILLEGAL_COMMAND = $A004;

  {*
   * No mojo.
   }
  AL_OUT_OF_MEMORY = $A005;


  {* Context strings: Vendor Name. }
  AL_VENDOR = $B001;
  AL_VERSION = $B002;
  AL_RENDERER = $B003;
  AL_EXTENSIONS = $B004;

  {* Global tweakage. }

  {*
   * Doppler scale.  Default 1.0
   }
  AL_DOPPLER_FACTOR = $C000;

  {*
   * Tweaks speed of propagation.
   }
  AL_DOPPLER_VELOCITY = $C001;

  {*
   * Distance scaling
   }
  AL_DISTANCE_SCALE = $C002;

  {*
   * Distance models
   *
   * used in conjunction with DistanceModel
   *
   * implicit: NONE, which disances distance attenuation.
   }
  AL_DISTANCE_MODEL            = $D000;
  AL_INVERSE_DISTANCE          = $D001;
  AL_INVERSE_DISTANCE_CLAMPED  = $D002;
  AL_LINEAR_DISTANCE           = $D003; {< since OpenAL 1.1 }
  AL_LINEAR_DISTANCE_CLAMPED   = $D004; {< since OpenAL 1.1 }
  AL_EXPONENT_DISTANCE         = $D005; {< since OpenAL 1.1 }
  AL_EXPONENT_DISTANCE_CLAMPED = $D006; {< since OpenAL 1.1 }

  {*
   * enables
   }

  { #define AL_SOME_ENABLE                            0xE000 }

  {* IASIG Level 2 Environment. }

  {*
   * Parameter:  IASIG ROOM  blah
   * Type:       intgeger
   * Range:      [-10000, 0]
   * Default:    -10000
   }
  AL_ENV_ROOM_IASIG = $3001;

  {*
   * Parameter:  IASIG ROOM_HIGH_FREQUENCY
   * Type:       integer
   * Range:      [-10000, 0]
   * Default:    0
   }
  AL_ENV_ROOM_HIGH_FREQUENCY_IASIG = $3002;

  {*
   * Parameter:  IASIG ROOM_ROLLOFF_FACTOR
   * Type:       float
   * Range:      [0.0, 10.0]
   * Default:    0.0
   }
  AL_ENV_ROOM_ROLLOFF_FACTOR_IASIG = $3003;

  {*
   * Parameter:  IASIG  DECAY_TIME
   * Type:       float
   * Range:      [0.1, 20.0]
   * Default:    1.0
   }
  AL_ENV_DECAY_TIME_IASIG = $3004;

  {*
   * Parameter:  IASIG DECAY_HIGH_FREQUENCY_RATIO
   * Type:       float
   * Range:      [0.1, 2.0]
   * Default:    0.5
   }
  AL_ENV_DECAY_HIGH_FREQUENCY_RATIO_IASIG = $3005;

  {*
   * Parameter:  IASIG REFLECTIONS
   * Type:       integer
   * Range:      [-10000, 1000]
   * Default:    -10000
   }
  AL_ENV_REFLECTIONS_IASIG = $3006;

  {*
   * Parameter:  IASIG REFLECTIONS_DELAY
   * Type:       float
   * Range:      [0.0, 0.3]
   * Default:    0.02
   }
  AL_ENV_REFLECTIONS_DELAY_IASIG = $3006;

  {*
   * Parameter:  IASIG REVERB
   * Type:       integer
   * Range:      [-10000,2000]
   * Default:    -10000
   }
  AL_ENV_REVERB_IASIG = $3007;

  {*
   * Parameter:  IASIG REVERB_DELAY
   * Type:       float
   * Range:      [0.0, 0.1]
   * Default:    0.04
   }
  AL_ENV_REVERB_DELAY_IASIG = $3008;

  {*
   * Parameter:  IASIG DIFFUSION
   * Type:       float
   * Range:      [0.0, 100.0]
   * Default:    100.0
   }
  AL_ENV_DIFFUSION_IASIG = $3009;

  {*
   * Parameter:  IASIG DENSITY
   * Type:       float
   * Range:      [0.0, 100.0]
   * Default:    100.0
   }
  AL_ENV_DENSITY_IASIG = $300A;

  {*
   * Parameter:  IASIG HIGH_FREQUENCY_REFERENCE
   * Type:       float
   * Range:      [20.0, 20000.0]
   * Default:    5000.0
   }
  AL_ENV_HIGH_FREQUENCY_REFERENCE_IASIG = $300B;

  { MP3 format.
    See http://icculus.org/alextreg/index.php?operation=op_showext&extname=AL_EXT_mp3 }
  AL_FORMAT_MP3_EXT = $10020;

  { Ogg Vorbis format.
    See http://icculus.org/alextreg/index.php?operation=op_showext&extname=AL_EXT_vorbis }
  AL_FORMAT_VORBIS_EXT = $10003;