zenilib: zenilib/jni/external/openal-soft/include/AL/alc.h Source File

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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;
36 typedef struct ALCcontext_struct ALCcontext;
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);
171 ALC_API ALCboolean ALC_APIENTRY alcMakeContextCurrent(ALCcontext *context);
172 ALC_API void ALC_APIENTRY alcProcessContext(ALCcontext *context);
173 ALC_API void ALC_APIENTRY alcSuspendContext(ALCcontext *context);
174 ALC_API void ALC_APIENTRY alcDestroyContext(ALCcontext *context);
175 ALC_API ALCcontext* ALC_APIENTRY alcGetCurrentContext(void);
176 ALC_API ALCdevice* ALC_APIENTRY alcGetContextsDevice(ALCcontext *context);
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);
206 ALC_API ALCboolean ALC_APIENTRY alcCaptureCloseDevice(ALCdevice *device);
207 ALC_API void ALC_APIENTRY alcCaptureStart(ALCdevice *device);
208 ALC_API void ALC_APIENTRY alcCaptureStop(ALCdevice *device);
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);
213 typedef ALCboolean (ALC_APIENTRY *LPALCMAKECONTEXTCURRENT)(ALCcontext *context);
214 typedef void (ALC_APIENTRY *LPALCPROCESSCONTEXT)(ALCcontext *context);
215 typedef void (ALC_APIENTRY *LPALCSUSPENDCONTEXT)(ALCcontext *context);
216 typedef void (ALC_APIENTRY *LPALCDESTROYCONTEXT)(ALCcontext *context);
217 typedef ALCcontext* (ALC_APIENTRY *LPALCGETCURRENTCONTEXT)(void);
218 typedef ALCdevice* (ALC_APIENTRY *LPALCGETCONTEXTSDEVICE)(ALCcontext *context);
219 typedef ALCdevice* (ALC_APIENTRY *LPALCOPENDEVICE)(const ALCchar *devicename);
220 typedef ALCboolean (ALC_APIENTRY *LPALCCLOSEDEVICE)(ALCdevice *device);
221 typedef ALCenum (ALC_APIENTRY *LPALCGETERROR)(ALCdevice *device);
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);
228 typedef ALCboolean (ALC_APIENTRY *LPALCCAPTURECLOSEDEVICE)(ALCdevice *device);
229 typedef void (ALC_APIENTRY *LPALCCAPTURESTART)(ALCdevice *device);
230 typedef void (ALC_APIENTRY *LPALCCAPTURESTOP)(ALCdevice *device);
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 */
ALCushort
unsigned short ALCushort
Definition: alc.h:54
LPALCCAPTURESAMPLES
void(ALC_APIENTRY * LPALCCAPTURESAMPLES)(ALCdevice *device, ALCvoid *buffer, ALCsizei samples)
Definition: alc.h:231
LPALCMAKECONTEXTCURRENT
ALCboolean(ALC_APIENTRY * LPALCMAKECONTEXTCURRENT)(ALCcontext *context)
Definition: alc.h:213
LPALCGETPROCADDRESS
void *(ALC_APIENTRY * LPALCGETPROCADDRESS)(ALCdevice *device, const ALCchar *funcname)
Definition: alc.h:223
param
GLenum GLint param
Definition: gl2ext.h:1491
LPALCGETCURRENTCONTEXT
ALCcontext *(ALC_APIENTRY * LPALCGETCURRENTCONTEXT)(void)
Definition: alc.h:217
alcGetIntegerv
ALC_API ALCvoid ALC_APIENTRY alcGetIntegerv(ALCdevice *device, ALCenum param, ALsizei size, ALCint *data)
Definition: ALc.c:2188
void
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
Definition: glew.h:1824
alcCaptureCloseDevice
ALC_API ALCboolean ALC_APIENTRY alcCaptureCloseDevice(ALCdevice *Device)
Definition: ALc.c:2995
LPALCCAPTURECLOSEDEVICE
ALCboolean(ALC_APIENTRY * LPALCCAPTURECLOSEDEVICE)(ALCdevice *device)
Definition: alc.h:228
alcSuspendContext
ALC_API ALCvoid ALC_APIENTRY alcSuspendContext(ALCcontext *Context)
Definition: ALc.c:2047
ALCubyte
unsigned char ALCubyte
Definition: alc.h:48
LPALCGETENUMVALUE
ALCenum(ALC_APIENTRY * LPALCGETENUMVALUE)(ALCdevice *device, const ALCchar *enumname)
Definition: alc.h:224
alcMakeContextCurrent
ALC_API ALCboolean ALC_APIENTRY alcMakeContextCurrent(ALCcontext *context)
Definition: ALc.c:2590
ALCbyte
signed char ALCbyte
Definition: alc.h:45
ALCsizei
int ALCsizei
Definition: alc.h:63
alcCloseDevice
ALC_API ALCboolean ALC_APIENTRY alcCloseDevice(ALCdevice *Device)
Definition: ALc.c:2884
alcGetString
ALC_API const ALCchar *ALC_APIENTRY alcGetString(ALCdevice *Device, ALCenum param)
Definition: ALc.c:2066
LPALCCLOSEDEVICE
ALCboolean(ALC_APIENTRY * LPALCCLOSEDEVICE)(ALCdevice *device)
Definition: alc.h:220
ALCdevice_struct
Definition: alMain.h:560
alcDestroyContext
ALC_API ALCvoid ALC_APIENTRY alcDestroyContext(ALCcontext *context)
Definition: ALc.c:2539
alcGetProcAddress
ALC_API ALCvoid *ALC_APIENTRY alcGetProcAddress(ALCdevice *device, const ALCchar *funcName)
Definition: ALc.c:2411
ALCshort
short ALCshort
Definition: alc.h:51
alcGetEnumValue
ALC_API ALCenum ALC_APIENTRY alcGetEnumValue(ALCdevice *device, const ALCchar *enumName)
Definition: ALc.c:2437
LPALCCAPTUREOPENDEVICE
ALCdevice *(ALC_APIENTRY * LPALCCAPTUREOPENDEVICE)(const ALCchar *devicename, ALCuint frequency, ALCenum format, ALCsizei buffersize)
Definition: alc.h:227
ALC_APIENTRY
#define ALC_APIENTRY
Definition: alc.h:21
LPALCGETSTRING
const ALCchar *(ALC_APIENTRY * LPALCGETSTRING)(ALCdevice *device, ALCenum param)
Definition: alc.h:225
LPALCCREATECONTEXT
ALCcontext *(ALC_APIENTRY * LPALCCREATECONTEXT)(ALCdevice *device, const ALCint *attrlist)
Definition: alc.h:212
alcCaptureSamples
ALC_API void ALC_APIENTRY alcCaptureSamples(ALCdevice *device, ALCvoid *buffer, ALCsizei samples)
Definition: ALc.c:3054
ALCuint
unsigned int ALCuint
Definition: alc.h:60
ALCchar
char ALCchar
Definition: alc.h:42
alcGetCurrentContext
ALC_API ALCcontext *ALC_APIENTRY alcGetCurrentContext(void)
Definition: ALc.c:2563
buffer
EGLContext EGLenum EGLClientBuffer buffer
Definition: eglext.h:87
alcCaptureOpenDevice
ALC_API ALCdevice *ALC_APIENTRY alcCaptureOpenDevice(const ALCchar *deviceName, ALCuint frequency, ALCenum format, ALCsizei samples)
Definition: ALc.c:2922
alcProcessContext
ALC_API ALCvoid ALC_APIENTRY alcProcessContext(ALCcontext *Context)
Definition: ALc.c:2056
LPALCSUSPENDCONTEXT
void(ALC_APIENTRY * LPALCSUSPENDCONTEXT)(ALCcontext *context)
Definition: alc.h:215
samples
GLsizei samples
Definition: gl2ext.h:970
alcGetError
ALC_API ALCenum ALC_APIENTRY alcGetError(ALCdevice *device)
Definition: ALc.c:2027
ALCdouble
double ALCdouble
Definition: alc.h:72
format
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl2ext.h:845
alcCreateContext
ALC_API ALCcontext *ALC_APIENTRY alcCreateContext(ALCdevice *device, const ALCint *attrList)
Definition: ALc.c:2463
LPALCOPENDEVICE
ALCdevice *(ALC_APIENTRY * LPALCOPENDEVICE)(const ALCchar *devicename)
Definition: alc.h:219
LPALCISEXTENSIONPRESENT
ALCboolean(ALC_APIENTRY * LPALCISEXTENSIONPRESENT)(ALCdevice *device, const ALCchar *extname)
Definition: alc.h:222
alcCaptureStart
ALC_API void ALC_APIENTRY alcCaptureStart(ALCdevice *device)
Definition: ALc.c:3019
ALCfloat
float ALCfloat
Definition: alc.h:69
alcGetContextsDevice
ALC_API ALCdevice *ALC_APIENTRY alcGetContextsDevice(ALCcontext *Context)
Definition: ALc.c:2638
ALC_API
#define ALC_API
Definition: alc.h:14
ALCboolean
char ALCboolean
Definition: alc.h:39
ALCvoid
void ALCvoid
Definition: alc.h:75
ALCcontext_struct
Definition: alMain.h:675
alcCaptureStop
ALC_API void ALC_APIENTRY alcCaptureStop(ALCdevice *device)
Definition: ALc.c:3038
ALCint
int ALCint
Definition: alc.h:57
LPALCGETCONTEXTSDEVICE
ALCdevice *(ALC_APIENTRY * LPALCGETCONTEXTSDEVICE)(ALCcontext *context)
Definition: alc.h:218
LPALCGETERROR
ALCenum(ALC_APIENTRY * LPALCGETERROR)(ALCdevice *device)
Definition: alc.h:221
context
TParseContext * context
Definition: glslang_tab.cpp:1907
LPALCCAPTURESTART
void(ALC_APIENTRY * LPALCCAPTURESTART)(ALCdevice *device)
Definition: alc.h:229
ALCenum
int ALCenum
Definition: alc.h:66
LPALCDESTROYCONTEXT
void(ALC_APIENTRY * LPALCDESTROYCONTEXT)(ALCcontext *context)
Definition: alc.h:216
alcOpenDevice
ALC_API ALCdevice *ALC_APIENTRY alcOpenDevice(const ALCchar *deviceName)
Definition: ALc.c:2658
LPALCCAPTURESTOP
void(ALC_APIENTRY * LPALCCAPTURESTOP)(ALCdevice *device)
Definition: alc.h:230
alcIsExtensionPresent
ALC_API ALCboolean ALC_APIENTRY alcIsExtensionPresent(ALCdevice *device, const ALCchar *extName)
Definition: ALc.c:2373
values
GLint GLsizei const GLuint64 * values
Definition: glew.h:3473
LPALCPROCESSCONTEXT
void(ALC_APIENTRY * LPALCPROCESSCONTEXT)(ALCcontext *context)
Definition: alc.h:214
LPALCGETINTEGERV
void(ALC_APIENTRY * LPALCGETINTEGERV)(ALCdevice *device, ALCenum param, ALCsizei size, ALCint *values)
Definition: alc.h:226
size
GLsizei size
Definition: gl2ext.h:1467