zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
alc.h
Go to the documentation of this file.
1 #ifndef AL_ALC_H
2 #define AL_ALC_H
3 
4 #if defined(__cplusplus)
5 extern "C" {
6 #endif
7 
8 #ifndef ALC_API
9  #if defined(AL_LIBTYPE_STATIC)
10  #define ALC_API
11  #elif defined(_WIN32)
12  #define ALC_API __declspec(dllimport)
13  #else
14  #define ALC_API extern
15  #endif
16 #endif
17 
18 #if defined(_WIN32)
19  #define ALC_APIENTRY __cdecl
20 #else
21  #define ALC_APIENTRY
22 #endif
23 
24 
26 #define ALCAPI ALC_API
27 #define ALCAPIENTRY ALC_APIENTRY
28 #define ALC_INVALID 0
29 
31 #define ALC_VERSION_0_1 1
32 
34 typedef struct ALCdevice_struct ALCdevice;
37 
39 typedef char ALCboolean;
40 
42 typedef char ALCchar;
43 
45 typedef signed char ALCbyte;
46 
48 typedef unsigned char ALCubyte;
49 
51 typedef short ALCshort;
52 
54 typedef unsigned short ALCushort;
55 
57 typedef int ALCint;
58 
60 typedef unsigned int ALCuint;
61 
63 typedef int ALCsizei;
64 
66 typedef int ALCenum;
67 
69 typedef float ALCfloat;
70 
72 typedef double ALCdouble;
73 
75 typedef void ALCvoid;
76 
77 
78 /* Enumerant values begin at column 50. No tabs. */
79 
81 #define ALC_FALSE 0
82 
84 #define ALC_TRUE 1
85 
87 #define ALC_FREQUENCY 0x1007
88 
90 #define ALC_REFRESH 0x1008
91 
93 #define ALC_SYNC 0x1009
94 
96 #define ALC_MONO_SOURCES 0x1010
97 
99 #define ALC_STEREO_SOURCES 0x1011
100 
102 #define ALC_NO_ERROR 0
103 
105 #define ALC_INVALID_DEVICE 0xA001
106 
108 #define ALC_INVALID_CONTEXT 0xA002
109 
111 #define ALC_INVALID_ENUM 0xA003
112 
114 #define ALC_INVALID_VALUE 0xA004
115 
117 #define ALC_OUT_OF_MEMORY 0xA005
118 
119 
121 #define ALC_MAJOR_VERSION 0x1000
122 #define ALC_MINOR_VERSION 0x1001
123 
125 #define ALC_ATTRIBUTES_SIZE 0x1002
126 #define ALC_ALL_ATTRIBUTES 0x1003
127 
129 #define ALC_DEFAULT_DEVICE_SPECIFIER 0x1004
130 
136 #define ALC_DEVICE_SPECIFIER 0x1005
137 
138 #define ALC_EXTENSIONS 0x1006
139 
140 
142 #define ALC_EXT_CAPTURE 1
143 
149 #define ALC_CAPTURE_DEVICE_SPECIFIER 0x310
150 
151 #define ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER 0x311
152 
153 #define ALC_CAPTURE_SAMPLES 0x312
154 
155 
157 #define ALC_ENUMERATE_ALL_EXT 1
158 
159 #define ALC_DEFAULT_ALL_DEVICES_SPECIFIER 0x1012
160 
166 #define ALC_ALL_DEVICES_SPECIFIER 0x1013
167 
168 
170 ALC_API ALCcontext* ALC_APIENTRY alcCreateContext(ALCdevice *device, const ALCint* attrlist);
177 
179 ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice(const ALCchar *devicename);
180 ALC_API ALCboolean ALC_APIENTRY alcCloseDevice(ALCdevice *device);
181 
182 
188 ALC_API ALCenum ALC_APIENTRY alcGetError(ALCdevice *device);
189 
196 ALC_API ALCboolean ALC_APIENTRY alcIsExtensionPresent(ALCdevice *device, const ALCchar *extname);
197 ALC_API void* ALC_APIENTRY alcGetProcAddress(ALCdevice *device, const ALCchar *funcname);
198 ALC_API ALCenum ALC_APIENTRY alcGetEnumValue(ALCdevice *device, const ALCchar *enumname);
199 
201 ALC_API const ALCchar* ALC_APIENTRY alcGetString(ALCdevice *device, ALCenum param);
202 ALC_API void ALC_APIENTRY alcGetIntegerv(ALCdevice *device, ALCenum param, ALCsizei size, ALCint *values);
203 
205 ALC_API ALCdevice* ALC_APIENTRY alcCaptureOpenDevice(const ALCchar *devicename, ALCuint frequency, ALCenum format, ALCsizei buffersize);
209 ALC_API void ALC_APIENTRY alcCaptureSamples(ALCdevice *device, ALCvoid *buffer, ALCsizei samples);
210 
212 typedef ALCcontext* (ALC_APIENTRY *LPALCCREATECONTEXT)(ALCdevice *device, const ALCint *attrlist);
219 typedef ALCdevice* (ALC_APIENTRY *LPALCOPENDEVICE)(const ALCchar *devicename);
222 typedef ALCboolean (ALC_APIENTRY *LPALCISEXTENSIONPRESENT)(ALCdevice *device, const ALCchar *extname);
223 typedef void* (ALC_APIENTRY *LPALCGETPROCADDRESS)(ALCdevice *device, const ALCchar *funcname);
224 typedef ALCenum (ALC_APIENTRY *LPALCGETENUMVALUE)(ALCdevice *device, const ALCchar *enumname);
225 typedef const ALCchar* (ALC_APIENTRY *LPALCGETSTRING)(ALCdevice *device, ALCenum param);
226 typedef void (ALC_APIENTRY *LPALCGETINTEGERV)(ALCdevice *device, ALCenum param, ALCsizei size, ALCint *values);
227 typedef ALCdevice* (ALC_APIENTRY *LPALCCAPTUREOPENDEVICE)(const ALCchar *devicename, ALCuint frequency, ALCenum format, ALCsizei buffersize);
231 typedef void (ALC_APIENTRY *LPALCCAPTURESAMPLES)(ALCdevice *device, ALCvoid *buffer, ALCsizei samples);
232 
233 #if defined(__cplusplus)
234 }
235 #endif
236 
237 #endif /* AL_ALC_H */
unsigned short ALCushort
Definition: alc.h:54
void(ALC_APIENTRY * LPALCCAPTURESAMPLES)(ALCdevice *device, ALCvoid *buffer, ALCsizei samples)
Definition: alc.h:231
ALCboolean(ALC_APIENTRY * LPALCMAKECONTEXTCURRENT)(ALCcontext *context)
Definition: alc.h:213
void *(ALC_APIENTRY * LPALCGETPROCADDRESS)(ALCdevice *device, const ALCchar *funcname)
Definition: alc.h:223
GLenum GLint param
Definition: gl2ext.h:1491
ALCcontext *(ALC_APIENTRY * LPALCGETCURRENTCONTEXT)(void)
Definition: alc.h:217
ALC_API ALCvoid ALC_APIENTRY alcGetIntegerv(ALCdevice *device, ALCenum param, ALsizei size, ALCint *data)
Definition: ALc.c:2188
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
Definition: glew.h:1824
ALC_API ALCboolean ALC_APIENTRY alcCaptureCloseDevice(ALCdevice *Device)
Definition: ALc.c:2995
ALCboolean(ALC_APIENTRY * LPALCCAPTURECLOSEDEVICE)(ALCdevice *device)
Definition: alc.h:228
ALC_API ALCvoid ALC_APIENTRY alcSuspendContext(ALCcontext *Context)
Definition: ALc.c:2047
unsigned char ALCubyte
Definition: alc.h:48
ALCenum(ALC_APIENTRY * LPALCGETENUMVALUE)(ALCdevice *device, const ALCchar *enumname)
Definition: alc.h:224
ALC_API ALCboolean ALC_APIENTRY alcMakeContextCurrent(ALCcontext *context)
Definition: ALc.c:2590
signed char ALCbyte
Definition: alc.h:45
int ALCsizei
Definition: alc.h:63
ALC_API ALCboolean ALC_APIENTRY alcCloseDevice(ALCdevice *Device)
Definition: ALc.c:2884
ALC_API const ALCchar *ALC_APIENTRY alcGetString(ALCdevice *Device, ALCenum param)
Definition: ALc.c:2066
ALCboolean(ALC_APIENTRY * LPALCCLOSEDEVICE)(ALCdevice *device)
Definition: alc.h:220
ALC_API ALCvoid ALC_APIENTRY alcDestroyContext(ALCcontext *context)
Definition: ALc.c:2539
ALC_API ALCvoid *ALC_APIENTRY alcGetProcAddress(ALCdevice *device, const ALCchar *funcName)
Definition: ALc.c:2411
short ALCshort
Definition: alc.h:51
ALC_API ALCenum ALC_APIENTRY alcGetEnumValue(ALCdevice *device, const ALCchar *enumName)
Definition: ALc.c:2437
ALCdevice *(ALC_APIENTRY * LPALCCAPTUREOPENDEVICE)(const ALCchar *devicename, ALCuint frequency, ALCenum format, ALCsizei buffersize)
Definition: alc.h:227
#define ALC_APIENTRY
Definition: alc.h:21
const ALCchar *(ALC_APIENTRY * LPALCGETSTRING)(ALCdevice *device, ALCenum param)
Definition: alc.h:225
ALCcontext *(ALC_APIENTRY * LPALCCREATECONTEXT)(ALCdevice *device, const ALCint *attrlist)
Definition: alc.h:212
ALC_API void ALC_APIENTRY alcCaptureSamples(ALCdevice *device, ALCvoid *buffer, ALCsizei samples)
Definition: ALc.c:3054
unsigned int ALCuint
Definition: alc.h:60
char ALCchar
Definition: alc.h:42
ALC_API ALCcontext *ALC_APIENTRY alcGetCurrentContext(void)
Definition: ALc.c:2563
EGLContext EGLenum EGLClientBuffer buffer
Definition: eglext.h:87
ALC_API ALCdevice *ALC_APIENTRY alcCaptureOpenDevice(const ALCchar *deviceName, ALCuint frequency, ALCenum format, ALCsizei samples)
Definition: ALc.c:2922
ALC_API ALCvoid ALC_APIENTRY alcProcessContext(ALCcontext *Context)
Definition: ALc.c:2056
void(ALC_APIENTRY * LPALCSUSPENDCONTEXT)(ALCcontext *context)
Definition: alc.h:215
GLsizei samples
Definition: gl2ext.h:970
ALC_API ALCenum ALC_APIENTRY alcGetError(ALCdevice *device)
Definition: ALc.c:2027
double ALCdouble
Definition: alc.h:72
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl2ext.h:845
ALC_API ALCcontext *ALC_APIENTRY alcCreateContext(ALCdevice *device, const ALCint *attrList)
Definition: ALc.c:2463
ALCdevice *(ALC_APIENTRY * LPALCOPENDEVICE)(const ALCchar *devicename)
Definition: alc.h:219
ALCboolean(ALC_APIENTRY * LPALCISEXTENSIONPRESENT)(ALCdevice *device, const ALCchar *extname)
Definition: alc.h:222
ALC_API void ALC_APIENTRY alcCaptureStart(ALCdevice *device)
Definition: ALc.c:3019
float ALCfloat
Definition: alc.h:69
ALC_API ALCdevice *ALC_APIENTRY alcGetContextsDevice(ALCcontext *Context)
Definition: ALc.c:2638
#define ALC_API
Definition: alc.h:14
char ALCboolean
Definition: alc.h:39
void ALCvoid
Definition: alc.h:75
ALC_API void ALC_APIENTRY alcCaptureStop(ALCdevice *device)
Definition: ALc.c:3038
int ALCint
Definition: alc.h:57
ALCdevice *(ALC_APIENTRY * LPALCGETCONTEXTSDEVICE)(ALCcontext *context)
Definition: alc.h:218
ALCenum(ALC_APIENTRY * LPALCGETERROR)(ALCdevice *device)
Definition: alc.h:221
TParseContext * context
void(ALC_APIENTRY * LPALCCAPTURESTART)(ALCdevice *device)
Definition: alc.h:229
int ALCenum
Definition: alc.h:66
void(ALC_APIENTRY * LPALCDESTROYCONTEXT)(ALCcontext *context)
Definition: alc.h:216
ALC_API ALCdevice *ALC_APIENTRY alcOpenDevice(const ALCchar *deviceName)
Definition: ALc.c:2658
void(ALC_APIENTRY * LPALCCAPTURESTOP)(ALCdevice *device)
Definition: alc.h:230
ALC_API ALCboolean ALC_APIENTRY alcIsExtensionPresent(ALCdevice *device, const ALCchar *extName)
Definition: ALc.c:2373
GLint GLsizei const GLuint64 * values
Definition: glew.h:3473
void(ALC_APIENTRY * LPALCPROCESSCONTEXT)(ALCcontext *context)
Definition: alc.h:214
void(ALC_APIENTRY * LPALCGETINTEGERV)(ALCdevice *device, ALCenum param, ALCsizei size, ALCint *values)
Definition: alc.h:226
GLsizei size
Definition: gl2ext.h:1467