doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
al.h
Go to the documentation of this file.
1 #ifndef _AL_H_
2 #define _AL_H_
3 
23 #include "altypes.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 #ifdef _WIN32
30  #ifdef _OPENAL32LIB
31  #define ALAPI __declspec(dllexport)
32  #else
33  #define ALAPI __declspec(dllimport)
34  #endif
35  #define ALAPIENTRY __cdecl
36  #define AL_CALLBACK
37 #else
38  #ifdef TARGET_OS_MAC
39  #if TARGET_OS_MAC
40  #pragma export on
41  #endif
42  #endif
43  #define ALAPI
44  #define ALAPIENTRY __cdecl
45  #define AL_CALLBACK
46 #endif
47 
48 #define OPENAL
49 
50 #ifndef AL_NO_PROTOTYPES
51 
61 ALAPI ALvoid ALAPIENTRY alEnable( ALenum capability );
62 ALAPI ALvoid ALAPIENTRY alDisable( ALenum capability );
64 
67 
78 
84 
85 
92 
93 
100 
101 
107 
108 
109 
110 
127 
128 
134 
135 
142 
143 
151 
156 
157 
171 
174 
177 
183 
189 
194 
197 
203 
212 
219 
220 
221 
239 
244  ALenum format,
245  ALvoid* data,
246  ALsizei size,
247  ALsizei freq );
248 
249 
252 
253 
254 
255 
262 
269 
270 #else /* AL_NO_PROTOTYPES */
271 
281 ALAPI ALvoid ALAPIENTRY (*alEnable)( ALenum capability );
282 ALAPI ALvoid ALAPIENTRY (*alDisable)( ALenum capability );
283 ALAPI ALboolean ALAPIENTRY (*alIsEnabled)( ALenum capability );
284 
287 
298 
304 
305 
312 
313 
320 
321 
327 
328 
329 
330 
347 
348 
354 
355 
362 
363 
371 
376 
377 
391 
394 
397 
403 
408 
411 
414 
420 
429 
430 
431 
449 
454  ALenum format,
455  ALvoid* data,
456  ALsizei size,
457  ALsizei freq );
458 
461 
462 
463 
464 
470 
477 
478 #endif /* AL_NO_PROTOTYPES */
479 
480 #ifdef TARGET_OS_MAC
481  #if TARGET_OS_MAC
482  #pragma export off
483  #endif
484 #endif
485 
486 #ifdef __cplusplus
487 }
488 #endif
489 
490 #endif
491 
ALAPI ALboolean ALAPIENTRY alIsSource(ALuint id)
Verify a handle is a valid Source.
Definition: stubs.cpp:35
ALAPI ALvoid ALAPIENTRY alListenerfv(ALenum param, ALfloat *values)
Listener Position: ALfloat[3] Listener Velocity: ALfloat[3] Listener Orientation: ALfloat[6] (forward...
ALAPI ALvoid ALAPIENTRY alDistanceModel(ALenum value)
Knobs and dials.
ALAPI ALenum ALAPIENTRY alGetEnumValue(ALubyte *ename)
Extension support.
GLboolean GLenum GLenum GLvoid * values
Definition: glext.h:2868
GLsizei const GLfloat * value
Definition: glext.h:3614
int ALint
OpenAL 32bit signed integer type.
Definition: altypes.h:48
ALAPI ALvoid ALAPIENTRY alGetSourcefv(ALuint source, ALenum param, ALfloat *values)
ALAPI ALboolean ALAPIENTRY alGetBoolean(ALenum param)
State retrieval.
ALAPI ALenum ALAPIENTRY alGetError(ALvoid)
Error support.
ALAPI ALdouble ALAPIENTRY alGetDouble(ALenum param)
ALAPI ALvoid ALAPIENTRY alGetDoublev(ALenum param, ALdouble *data)
ALAPI ALvoid ALAPIENTRY alDopplerVelocity(ALfloat value)
ALAPI ALvoid ALAPIENTRY alSourceStop(ALuint source)
Stop a source, temporarily remove it from the mixer list, and reset its internal state to pre-Play...
Definition: stubs.cpp:41
ALAPI ALvoid ALAPIENTRY alGetIntegerv(ALenum param, ALint *data)
ALAPI ALboolean ALAPIENTRY alIsEnabled(ALenum capability)
GLenum GLsizei GLenum format
Definition: glext.h:2846
#define ALAPI
OpenAL cross platform audio library Copyright (C) 1999-2000 by authors.
Definition: al.h:43
#define ALAPIENTRY
Definition: al.h:44
ALAPI ALvoid ALAPIENTRY alSourcePlayv(ALsizei n, ALuint *sources)
GLfloat param
Definition: glext.h:3038
GLenum GLsizei n
Definition: glext.h:3705
ALAPI ALvoid ALAPIENTRY alGetBufferf(ALuint buffer, ALenum param, ALfloat *value)
ALAPI ALvoid ALAPIENTRY alGetListeneri(ALenum param, ALint *value)
ALAPI ALvoid ALAPIENTRY alGetBooleanv(ALenum param, ALboolean *data)
const GLuint * buffers
Definition: glext.h:3109
ALAPI ALboolean ALAPIENTRY alIsExtensionPresent(ALubyte *fname)
Extension support.
Definition: stubs.cpp:89
ALAPI ALvoid ALAPIENTRY alSourceRewind(ALuint source)
Rewinds a source, temporarily remove it from the mixer list, and reset its internal state to pre-Play...
ALAPI ALvoid ALAPIENTRY alGetListenerf(ALenum param, ALfloat *value)
ALAPI ALvoid ALAPIENTRY alBufferData(ALuint buffer, ALenum format, ALvoid *data, ALsizei size, ALsizei freq)
Specify the data to be filled into a buffer.
Definition: stubs.cpp:81
unsigned char ALubyte
OpenAL 8bit unsigned byte.
Definition: altypes.h:36
ALAPI ALvoid ALAPIENTRY alSource3f(ALuint source, ALenum param, ALfloat v1, ALfloat v2, ALfloat v3)
Definition: stubs.cpp:126
ALAPI ALvoid ALAPIENTRY alGetFloatv(ALenum param, ALfloat *data)
ALAPI ALvoid ALAPIENTRY alGenBuffers(ALsizei n, ALuint *buffers)
BUFFER Buffer objects are storage space for sample data.
Definition: stubs.cpp:39
ALAPI ALvoid ALAPIENTRY alListener3f(ALenum param, ALfloat v1, ALfloat v2, ALfloat v3)
Listener Position.
float ALfloat
OpenAL 32bit floating point type.
Definition: altypes.h:51
ALAPI ALvoid ALAPIENTRY alSourcePlay(ALuint source)
Activate a source, start replay.
Definition: stubs.cpp:135
ALAPI ALvoid ALAPIENTRY alSourcePause(ALuint source)
Pause a source, temporarily remove it from the mixer list.
unsigned ALuint
OpenAL 32bit unsigned integer type.
Definition: altypes.h:45
GLsizei GLsizei GLcharARB * source
Definition: glext.h:3633
unsigned int ALsizei
OpenAL 32bit type.
Definition: altypes.h:57
GLfloat GLfloat GLfloat v2
Definition: glext.h:3608
ALAPI ALvoid ALAPIENTRY alGetSource3f(ALuint source, ALenum param, ALfloat *v1, ALfloat *v2, ALfloat *v3)
char ALboolean
OpenAL cross platform audio library Copyright (C) 1999-2000 by authors.
Definition: altypes.h:30
ALAPI ALvoid ALAPIENTRY alSourceUnqueueBuffers(ALuint source, ALsizei n, ALuint *buffers)
Definition: stubs.cpp:133
ALAPI ALvoid ALAPIENTRY alSourceRewindv(ALsizei n, ALuint *sources)
ALAPI ALvoid ALAPIENTRY alSourceQueueBuffers(ALuint source, ALsizei n, ALuint *buffers)
Queue stuff.
ALAPI ALvoid ALAPIENTRY alSourcei(ALuint source, ALenum param, ALint value)
Set an integer parameter for a Source object.
Definition: stubs.cpp:116
ALAPI ALvoid ALAPIENTRY alDeleteBuffers(ALsizei n, ALuint *buffers)
Definition: stubs.cpp:87
ALAPI ALvoid ALAPIENTRY alEnable(ALenum capability)
OpenAL Maintenance Functions Initialization and exiting.
ALAPI ALvoid ALAPIENTRY alSourceStopv(ALsizei n, ALuint *sources)
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: glext.h:2853
GLuint buffer
Definition: glext.h:3108
ALAPI ALvoid ALAPIENTRY alGetSourcei(ALuint source, ALenum param, ALint *value)
Get an integer parameter for a Source object.
Definition: stubs.cpp:43
ALAPI ALvoid ALAPIENTRY alGetSourcef(ALuint source, ALenum param, ALfloat *value)
ALAPI ALvoid ALAPIENTRY alHint(ALenum target, ALenum mode)
Application preferences for driver performance choices.
GLint mode
Definition: glext.h:4165
ALAPI ALvoid ALAPIENTRY alDeleteSources(ALsizei n, ALuint *sources)
Delete Source objects.
ALAPI ALvoid ALAPIENTRY alGetListener3f(ALenum param, ALfloat *v1, ALfloat *v2, ALfloat *v3)
ALAPI ALvoid ALAPIENTRY alSourcePausev(ALsizei n, ALuint *sources)
GLfloat GLfloat v1
Definition: glext.h:3607
double ALdouble
OpenAL 64bit double point type.
Definition: altypes.h:54
ALAPI ALvoid ALAPIENTRY alSourcefv(ALuint source, ALenum param, ALfloat *values)
ALAPI ALvoid ALAPIENTRY alListenerf(ALenum param, ALfloat value)
Listener Gain: default 1.0f.
Definition: stubs.cpp:118
GLfloat GLfloat GLfloat GLfloat v3
Definition: glext.h:3609
void ALvoid
OpenAL void type.
Definition: altypes.h:60
GLuint id
Definition: glext.h:3103
ALAPI ALvoid ALAPIENTRY alDopplerFactor(ALfloat value)
ALAPI ALvoid ALAPIENTRY alGenSources(ALsizei n, ALuint *sources)
SOURCE Source objects are by default localized.
Definition: stubs.cpp:129
GLsizeiptr size
Definition: glext.h:3112
ALAPI ALboolean ALAPIENTRY alIsBuffer(ALuint buffer)
Definition: stubs.cpp:122
ALAPI ALvoid ALAPIENTRY alListeneri(ALenum param, ALint value)
LISTENER Listener is the sample position for a given context.
int ALenum
OpenAL enumerations.
Definition: altypes.h:63
ALAPI ALvoid ALAPIENTRY alGetBufferi(ALuint buffer, ALenum param, ALint *value)
ALAPI ALvoid *ALAPIENTRY alGetProcAddress(ALubyte *fname)
Extension support.
ALAPI ALubyte *ALAPIENTRY alGetString(ALenum param)
ALAPI ALint ALAPIENTRY alGetInteger(ALenum param)
Definition: stubs.cpp:45
ALAPI ALfloat ALAPIENTRY alGetFloat(ALenum param)
ALAPI ALvoid ALAPIENTRY alSourcef(ALuint source, ALenum param, ALfloat value)
Definition: stubs.cpp:131
ALAPI ALvoid ALAPIENTRY alGetListenerfv(ALenum param, ALfloat *values)
ALAPI ALvoid ALAPIENTRY alDisable(ALenum capability)