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 
218 #define AL_SOURCE_STATE 0x1010
219 #define AL_INITIAL 0x1011
220 #define AL_PLAYING 0x1012
221 #define AL_PAUSED 0x1013
222 #define AL_STOPPED 0x1014
223 
227 #define AL_BUFFERS_QUEUED 0x1015
228 #define AL_BUFFERS_PROCESSED 0x1016
229 
231 #define AL_FORMAT_MONO8 0x1100
232 #define AL_FORMAT_MONO16 0x1101
233 #define AL_FORMAT_STEREO8 0x1102
234 #define AL_FORMAT_STEREO16 0x1103
235 
242 #define AL_FREQUENCY 0x2001
243 #define AL_BITS 0x2002
244 #define AL_CHANNELS 0x2003
245 #define AL_SIZE 0x2004
246 #define AL_DATA 0x2005
247 
253 #define AL_UNUSED 0x2010
254 #define AL_PENDING 0x2011
255 #define AL_PROCESSED 0x2012
256 
258 #define AL_NO_ERROR AL_FALSE
259 
263 #define AL_INVALID_NAME 0xA001
264 
268 #define AL_INVALID_ENUM 0xA002
269 
273 #define AL_INVALID_VALUE 0xA003
274 
281 #define AL_INVALID_OPERATION 0xA004
282 
287 #define AL_OUT_OF_MEMORY 0xA005
288 
290 #define AL_VENDOR 0xB001
291 #define AL_VERSION 0xB002
292 #define AL_RENDERER 0xB003
293 #define AL_EXTENSIONS 0xB004
294 
300 #define AL_DOPPLER_FACTOR 0xC000
301 
305 #define AL_DOPPLER_VELOCITY 0xC001
306 
310 #define AL_DISTANCE_MODEL 0xD000
311 
314 #define AL_INVERSE_DISTANCE 0xD001
315 #define AL_INVERSE_DISTANCE_CLAMPED 0xD002
316 
321 #ifdef __cplusplus
322 }
323 #endif
324 
325 #endif
326 
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