11 #define ALC_VERSION_0_1 1
15 #define ALCAPI __declspec(dllexport)
17 #define ALCAPI __declspec(dllimport)
20 typedef struct ALCdevice_struct ALCdevice;
21 typedef struct ALCcontext_struct ALCcontext;
23 #define ALCAPIENTRY __cdecl
35 #ifndef AL_NO_PROTOTYPES
37 ALCAPI ALCcontext * ALCAPIENTRY alcCreateContext( ALCdevice *dev,
41 * There is no current context, as we can mix
42 * several active contexts. But al* calls
43 * only affect the current context.
45 ALCAPI ALCenum ALCAPIENTRY alcMakeContextCurrent( ALCcontext *alcHandle );
48 * Perform processing on a synced context, non-op on a asynchronous
51 ALCAPI ALCcontext * ALCAPIENTRY alcProcessContext( ALCcontext *alcHandle );
54 * Suspend processing on an asynchronous context, non-op on a
57 ALCAPI void ALCAPIENTRY alcSuspendContext( ALCcontext *alcHandle );
59 ALCAPI ALCenum ALCAPIENTRY alcDestroyContext( ALCcontext *alcHandle );
61 ALCAPI ALCenum ALCAPIENTRY alcGetError( ALCdevice *dev );
63 ALCAPI ALCcontext * ALCAPIENTRY alcGetCurrentContext( ALvoid );
65 ALCAPI ALCdevice *alcOpenDevice( const ALubyte *tokstr );
66 ALCAPI void alcCloseDevice( ALCdevice *dev );
68 ALCAPI ALboolean ALCAPIENTRY alcIsExtensionPresent(ALCdevice *device, ALubyte *extName);
69 ALCAPI ALvoid * ALCAPIENTRY alcGetProcAddress(ALCdevice *device, ALubyte *funcName);
70 ALCAPI ALenum ALCAPIENTRY alcGetEnumValue(ALCdevice *device, ALubyte *enumName);
72 ALCAPI ALCdevice* ALCAPIENTRY alcGetContextsDevice(ALCcontext *context);
78 const ALubyte * alcGetString( ALCdevice *deviceHandle, ALenum token );
79 void alcGetIntegerv( ALCdevice *deviceHandle, ALenum token , ALsizei size , ALint *dest );
82 ALCcontext * (*alcCreateContext)( ALCdevice *dev, ALint* attrlist );
83 ALCenum (*alcMakeContextCurrent)( ALCcontext *alcHandle );
84 ALCcontext * (*alcProcessContext)( ALCcontext *alcHandle );
85 void (*alcSuspendContext)( ALCcontext *alcHandle );
86 ALCenum (*alcDestroyContext)( ALCcontext *alcHandle );
87 ALCenum (*alcGetError)( ALCdevice *dev );
88 ALCcontext * (*alcGetCurrentContext)( ALvoid );
89 ALCdevice * (*alcOpenDevice)( const ALubyte *tokstr );
90 void (*alcCloseDevice)( ALCdevice *dev );
91 ALboolean (*alcIsExtensionPresent)( ALCdevice *device, ALubyte *extName );
92 ALvoid * (*alcGetProcAddress)(ALCdevice *device, ALubyte *funcName );
93 ALenum (*alcGetEnumValue)(ALCdevice *device, ALubyte *enumName);
94 ALCdevice* (*alcGetContextsDevice)(ALCcontext *context);
95 const ALubyte* (*alcGetString)( ALCdevice *deviceHandle, ALenum token );
96 void (*alcGetIntegerv*)( ALCdevice *deviceHandle, ALenum token , ALsizei size , ALint *dest );
98 #endif /* AL_NO_PROTOTYPES */
103 #endif /* TARGET_OS_MAC */
104 #endif /* TARGET_OS_MAC */
110 #endif /* ALC_CONTEXT_H_ */