]> icculus.org git repositories - icculus/iodoom3.git/blob - neo/openal/osx/OpenAL.framework/Versions/A/Headers/alc.h
641e2fd85cff1d2e0200c5f026b65a6fa50cc4e4
[icculus/iodoom3.git] / neo / openal / osx / OpenAL.framework / Versions / A / Headers / alc.h
1 #ifndef _ALC_H_
2 #define _ALC_H_
3
4 #include "altypes.h"
5 #include "alctypes.h"
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 #ifdef _WIN32
12  #ifdef _LIB
13   #define ALCAPI __declspec(dllexport)
14  #else
15   #define ALCAPI __declspec(dllimport)
16   typedef ALCvoid ALCdevice;
17   typedef ALCvoid ALCcontext;
18  #endif
19  #define ALCAPIENTRY __cdecl
20 #else
21  #ifdef TARGET_OS_MAC
22   #if TARGET_OS_MAC
23    #pragma export on
24   #endif
25  #endif
26  #define ALCAPI 
27  #define ALCAPIENTRY 
28  typedef ALCvoid ALCdevice;
29   typedef ALCvoid ALCcontext;
30 #endif
31
32 #ifndef ALC_NO_PROTOTYPES
33
34 ALCAPI ALCubyte*  ALCAPIENTRY alcGetString(ALCdevice *device,ALCenum param);
35 ALCAPI ALCvoid    ALCAPIENTRY alcGetIntegerv(ALCdevice *device,ALCenum param,ALCsizei size,ALCint *data);
36
37 ALCAPI ALCdevice* ALCAPIENTRY alcOpenDevice(ALCubyte *deviceName);
38 ALCAPI ALCvoid    ALCAPIENTRY alcCloseDevice(ALCdevice *device);
39
40 ALCAPI ALCcontext*ALCAPIENTRY alcCreateContext(ALCdevice *device,ALCint *attrList);
41 ALCAPI ALCboolean ALCAPIENTRY alcMakeContextCurrent(ALCcontext *context);
42 ALCAPI ALCvoid    ALCAPIENTRY alcProcessContext(ALCcontext *context);
43 ALCAPI ALCcontext*ALCAPIENTRY alcGetCurrentContext();
44 ALCAPI ALCdevice* ALCAPIENTRY alcGetContextsDevice(ALCcontext *context);
45 ALCAPI ALCvoid    ALCAPIENTRY alcSuspendContext(ALCcontext *context);
46 ALCAPI ALCvoid    ALCAPIENTRY alcDestroyContext(ALCcontext *context);
47
48 ALCAPI ALCenum    ALCAPIENTRY alcGetError(ALCdevice *device);
49
50 ALCAPI ALCboolean ALCAPIENTRY alcIsExtensionPresent(ALCdevice *device,ALCubyte *extName);
51 ALCAPI ALCvoid *  ALCAPIENTRY alcGetProcAddress(ALCdevice *device,ALCubyte *funcName);
52 ALCAPI ALCenum    ALCAPIENTRY alcGetEnumValue(ALCdevice *device,ALCubyte *enumName);
53                                 
54 #else /* AL_NO_PROTOTYPES */
55
56 ALCAPI ALCubyte*  ALCAPIENTRY (*alcGetString)(ALCdevice *device,ALCenum param);
57 ALCAPI ALCvoid    ALCAPIENTRY (*alcGetIntegerv)(ALCdevice * device,ALCenum param,ALCsizei size,ALCint *data);
58
59 ALCAPI ALCdevice* ALCAPIENTRY (*alcOpenDevice)(ALubyte *deviceName);
60 ALCAPI ALCvoid    ALCAPIENTRY (*alcCloseDevice)(ALCdevice *device);
61
62 ALCAPI ALCcontext*ALCAPIENTRY (*alcCreateContext)(ALCdevice *device,ALCint *attrList);
63 ALCAPI ALCboolean ALCAPIENTRY (*alcMakeContextCurrent)(ALCcontext *context);
64 ALCAPI ALCvoid    ALCAPIENTRY (*alcProcessContext)(ALCcontext *context);
65 ALCAPI ALCcontext*ALCAPIENTRY (*alcGetCurrentContext)(ALCvoid);
66 ALCAPI ALCdevice* ALCAPIENTRY (*alcGetContextsDevice)(ALCcontext *context);
67 ALCAPI ALCvoid    ALCAPIENTRY (*alcSuspendContext)(ALCcontext *context);
68 ALCAPI ALCvoid    ALCAPIENTRY (*alcDestroyContext)(ALCcontext *context);
69
70 ALCAPI ALCenum    ALCAPIENTRY (*alcGetError)(ALCdevice *device);
71
72 ALCAPI ALCboolean ALCAPIENTRY (*alcIsExtensionPresent)(ALCdevice *device,ALCubyte *extName);
73 ALCAPI ALCvoid *  ALCAPIENTRY (*alcGetProcAddress)(ALCdevice *device,ALCubyte *funcName);
74 ALCAPI ALCenum    ALCAPIENTRY (*alcGetEnumValue)(ALCdevice *device,ALCubyte *enumName);
75
76 #endif /* AL_NO_PROTOTYPES */
77
78 #ifdef TARGET_OS_MAC
79  #if TARGET_OS_MAC
80   #pragma export off
81  #endif
82 #endif
83
84 #ifdef __cplusplus
85 }
86 #endif
87
88 #endif