doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
altypes.h
Go to the documentation of this file.
1 #ifndef _ALTYPES_H_
2 #define _ALTYPES_H_
3 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
30 typedef char ALboolean;
31 
33 typedef char ALbyte;
34 
36 typedef unsigned char ALubyte;
37 
39 typedef short ALshort;
40 
42 typedef unsigned short ALushort;
43 
45 typedef unsigned ALuint;
46 
48 typedef int ALint;
49 
51 typedef float ALfloat;
52 
54 typedef double ALdouble;
55 
57 typedef unsigned int ALsizei;
58 
60 typedef void ALvoid;
61 
63 typedef int ALenum;
64 
65 /* Bad value. */
66 #define AL_INVALID (-1)
67 
68 /* Disable value. */
69 #define AL_NONE 0
70 
71 /* Boolean False. */
72 #define AL_FALSE 0
73 
74 /* Boolean True. */
75 #define AL_TRUE 1
76 
81 #define AL_SOURCE_TYPE 0x200
82 
84 #define AL_SOURCE_ABSOLUTE 0x201
85 
87 #define AL_SOURCE_RELATIVE 0x202
88 
94 #define AL_CONE_INNER_ANGLE 0x1001
95 
101 #define AL_CONE_OUTER_ANGLE 0x1002
102 
109 #define AL_PITCH 0x1003
110 
121 #define AL_POSITION 0x1004
122 
124 #define AL_DIRECTION 0x1005
125 
127 #define AL_VELOCITY 0x1006
128 
135 #define AL_LOOPING 0x1007
136 
142 #define AL_BUFFER 0x1009
143 
155 #define AL_GAIN 0x100A
156 
162 #define AL_MIN_GAIN 0x100D
163 
169 #define AL_MAX_GAIN 0x100E
170 
176 #define AL_ORIENTATION 0x100F
177 
178 /* byte offset into source (in canon format). -1 if source
179  * is not playing. Don't set this, get this.
180  *
181  * Type: ALfloat
182  * Range: [0.0 - ]
183  * Default: 1.0
184  */
185 #define AL_REFERENCE_DISTANCE 0x1020
186 
193 #define AL_ROLLOFF_FACTOR 0x1021
194 
206 #define AL_CONE_OUTER_GAIN 0x1022
207 
213 #define AL_MAX_DISTANCE 0x1023
214 
220 #define AL_CHANNEL_MASK 0x3000
221 
225 #define AL_SOURCE_STATE 0x1010
226 #define AL_INITIAL 0x1011
227 #define AL_PLAYING 0x1012
228 #define AL_PAUSED 0x1013
229 #define AL_STOPPED 0x1014
230 
234 #define AL_BUFFERS_QUEUED 0x1015
235 #define AL_BUFFERS_PROCESSED 0x1016
236 
238 #define AL_FORMAT_MONO8 0x1100
239 #define AL_FORMAT_MONO16 0x1101
240 #define AL_FORMAT_STEREO8 0x1102
241 #define AL_FORMAT_STEREO16 0x1103
242 
249 #define AL_FREQUENCY 0x2001
250 #define AL_BITS 0x2002
251 #define AL_CHANNELS 0x2003
252 #define AL_SIZE 0x2004
253 #define AL_DATA 0x2005
254 
260 #define AL_UNUSED 0x2010
261 #define AL_PENDING 0x2011
262 #define AL_PROCESSED 0x2012
263 
265 #define AL_NO_ERROR AL_FALSE
266 
270 #define AL_INVALID_NAME 0xA001
271 
275 #define AL_INVALID_ENUM 0xA002
276 
280 #define AL_INVALID_VALUE 0xA003
281 
288 #define AL_INVALID_OPERATION 0xA004
289 
294 #define AL_OUT_OF_MEMORY 0xA005
295 
297 #define AL_VENDOR 0xB001
298 #define AL_VERSION 0xB002
299 #define AL_RENDERER 0xB003
300 #define AL_EXTENSIONS 0xB004
301 
307 #define AL_DOPPLER_FACTOR 0xC000
308 
312 #define AL_DOPPLER_VELOCITY 0xC001
313 
317 #define AL_DISTANCE_MODEL 0xD000
318 
321 #define AL_INVERSE_DISTANCE 0xD001
322 #define AL_INVERSE_DISTANCE_CLAMPED 0xD002
323 
328 #ifdef __cplusplus
329 }
330 #endif
331 
332 #endif
333 
int ALint
OpenAL 32bit signed integer type.
Definition: altypes.h:48
unsigned char ALubyte
OpenAL 8bit unsigned byte.
Definition: altypes.h:36
float ALfloat
OpenAL 32bit floating point type.
Definition: altypes.h:51
unsigned ALuint
OpenAL 32bit unsigned integer type.
Definition: altypes.h:45
unsigned int ALsizei
OpenAL 32bit type.
Definition: altypes.h:57
char ALboolean
OpenAL cross platform audio library Copyright (C) 1999-2000 by authors.
Definition: altypes.h:30
short ALshort
OpenAL 16bit signed short integer type.
Definition: altypes.h:39
double ALdouble
OpenAL 64bit double point type.
Definition: altypes.h:54
void ALvoid
OpenAL void type.
Definition: altypes.h:60
char ALbyte
OpenAL 8bit signed byte.
Definition: altypes.h:33
unsigned short ALushort
OpenAL 16bit unsigned short integer type.
Definition: altypes.h:42
int ALenum
OpenAL enumerations.
Definition: altypes.h:63