World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
alc.h
См. документацию.
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 ALCdevice;
36 typedef struct ALCcontext 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 */
ALCchar
char ALCchar
Definition: alc.h:42
alcGetString
const ALC_API ALCchar *ALC_APIENTRY alcGetString(ALCdevice *device, ALCenum param)
alcProcessContext
ALC_API void ALC_APIENTRY alcProcessContext(ALCcontext *context)
alcDestroyContext
ALC_API void ALC_APIENTRY alcDestroyContext(ALCcontext *context)
ALCfloat
float ALCfloat
Definition: alc.h:69
alcCaptureStart
ALC_API void ALC_APIENTRY alcCaptureStart(ALCdevice *device)
LPALCCAPTUREOPENDEVICE
ALCdevice *(ALC_APIENTRY * LPALCCAPTUREOPENDEVICE)(const ALCchar *devicename, ALCuint frequency, ALCenum format, ALCsizei buffersize)
Definition: alc.h:227
LPALCCAPTURECLOSEDEVICE
ALCboolean(ALC_APIENTRY * LPALCCAPTURECLOSEDEVICE)(ALCdevice *device)
Definition: alc.h:228
ALCsizei
int ALCsizei
Definition: alc.h:63
ALCboolean
char ALCboolean
Definition: alc.h:39
alcCaptureSamples
ALC_API void ALC_APIENTRY alcCaptureSamples(ALCdevice *device, ALCvoid *buffer, ALCsizei samples)
LPALCSUSPENDCONTEXT
void(ALC_APIENTRY * LPALCSUSPENDCONTEXT)(ALCcontext *context)
Definition: alc.h:215
ALCdouble
double ALCdouble
Definition: alc.h:72
values
GLenum GLsizei GLsizei GLint * values
Definition: SDL_opengl_glext.h:1489
ALCubyte
unsigned char ALCubyte
Definition: alc.h:48
LPALCCAPTURESAMPLES
void(ALC_APIENTRY * LPALCCAPTURESAMPLES)(ALCdevice *device, ALCvoid *buffer, ALCsizei samples)
Definition: alc.h:231
alcSuspendContext
ALC_API void ALC_APIENTRY alcSuspendContext(ALCcontext *context)
alcGetError
ALC_API ALCenum ALC_APIENTRY alcGetError(ALCdevice *device)
alcCaptureCloseDevice
ALC_API ALCboolean ALC_APIENTRY alcCaptureCloseDevice(ALCdevice *device)
format
SDL_AudioFormat format
Definition: SDL_audio.h:194
buffer
EGLContext EGLenum EGLClientBuffer buffer
Definition: SDL_egl.h:952
ALCint
int ALCint
Definition: alc.h:57
LPALCGETCURRENTCONTEXT
ALCcontext *(ALC_APIENTRY * LPALCGETCURRENTCONTEXT)(void)
Definition: alc.h:217
ALCenum
int ALCenum
Definition: alc.h:66
alcGetIntegerv
ALC_API void ALC_APIENTRY alcGetIntegerv(ALCdevice *device, ALCenum param, ALCsizei size, ALCint *values)
param
GLfloat param
Definition: SDL_opengl_glext.h:373
LPALCDESTROYCONTEXT
void(ALC_APIENTRY * LPALCDESTROYCONTEXT)(ALCcontext *context)
Definition: alc.h:216
LPALCCAPTURESTART
void(ALC_APIENTRY * LPALCCAPTURESTART)(ALCdevice *device)
Definition: alc.h:229
ALCbyte
signed char ALCbyte
Definition: alc.h:45
LPALCMAKECONTEXTCURRENT
ALCboolean(ALC_APIENTRY * LPALCMAKECONTEXTCURRENT)(ALCcontext *context)
Definition: alc.h:213
LPALCISEXTENSIONPRESENT
ALCboolean(ALC_APIENTRY * LPALCISEXTENSIONPRESENT)(ALCdevice *device, const ALCchar *extname)
Definition: alc.h:222
LPALCGETINTEGERV
void(ALC_APIENTRY * LPALCGETINTEGERV)(ALCdevice *device, ALCenum param, ALCsizei size, ALCint *values)
Definition: alc.h:226
alcCaptureStop
ALC_API void ALC_APIENTRY alcCaptureStop(ALCdevice *device)
LPALCCREATECONTEXT
ALCcontext *(ALC_APIENTRY * LPALCCREATECONTEXT)(ALCdevice *device, const ALCint *attrlist)
Definition: alc.h:212
LPALCGETENUMVALUE
ALCenum(ALC_APIENTRY * LPALCGETENUMVALUE)(ALCdevice *device, const ALCchar *enumname)
Definition: alc.h:224
ALCshort
short ALCshort
Definition: alc.h:51
LPALCOPENDEVICE
ALCdevice *(ALC_APIENTRY * LPALCOPENDEVICE)(const ALCchar *devicename)
Definition: alc.h:219
alcOpenDevice
ALC_API ALCdevice *ALC_APIENTRY alcOpenDevice(const ALCchar *devicename)
LPALCCAPTURESTOP
void(ALC_APIENTRY * LPALCCAPTURESTOP)(ALCdevice *device)
Definition: alc.h:230
void
typedef void(SDLCALL *SDL_AudioFilter)(struct SDL_AudioCVT *cvt
ALCcontext
struct ALCcontext ALCcontext
Definition: alc.h:36
alcGetContextsDevice
ALC_API ALCdevice *ALC_APIENTRY alcGetContextsDevice(ALCcontext *context)
LPALCPROCESSCONTEXT
void(ALC_APIENTRY * LPALCPROCESSCONTEXT)(ALCcontext *context)
Definition: alc.h:214
ALCushort
unsigned short ALCushort
Definition: alc.h:54
alcCloseDevice
ALC_API ALCboolean ALC_APIENTRY alcCloseDevice(ALCdevice *device)
alcGetCurrentContext
ALC_API ALCcontext *ALC_APIENTRY alcGetCurrentContext(void)
alcCaptureOpenDevice
ALC_API ALCdevice *ALC_APIENTRY alcCaptureOpenDevice(const ALCchar *devicename, ALCuint frequency, ALCenum format, ALCsizei buffersize)
LPALCGETERROR
ALCenum(ALC_APIENTRY * LPALCGETERROR)(ALCdevice *device)
Definition: alc.h:221
alcMakeContextCurrent
ALC_API ALCboolean ALC_APIENTRY alcMakeContextCurrent(ALCcontext *context)
LPALCCLOSEDEVICE
ALCboolean(ALC_APIENTRY * LPALCCLOSEDEVICE)(ALCdevice *device)
Definition: alc.h:220
alcCreateContext
ALC_API ALCcontext *ALC_APIENTRY alcCreateContext(ALCdevice *device, const ALCint *attrlist)
size
GLsizeiptr size
Definition: SDL_opengl_glext.h:540
ALCvoid
void ALCvoid
Definition: alc.h:75
alcIsExtensionPresent
ALC_API ALCboolean ALC_APIENTRY alcIsExtensionPresent(ALCdevice *device, const ALCchar *extname)
ALCuint
unsigned int ALCuint
Definition: alc.h:60
LPALCGETCONTEXTSDEVICE
ALCdevice *(ALC_APIENTRY * LPALCGETCONTEXTSDEVICE)(ALCcontext *context)
Definition: alc.h:218
alcGetProcAddress
ALC_API void *ALC_APIENTRY alcGetProcAddress(ALCdevice *device, const ALCchar *funcname)
ALCdevice
struct ALCdevice ALCdevice
Definition: alc.h:34
LPALCGETPROCADDRESS
void *(ALC_APIENTRY * LPALCGETPROCADDRESS)(ALCdevice *device, const ALCchar *funcname)
Definition: alc.h:223
samples
GLsizei samples
Definition: SDL_opengl_glext.h:1188
alcGetEnumValue
ALC_API ALCenum ALC_APIENTRY alcGetEnumValue(ALCdevice *device, const ALCchar *enumname)
LPALCGETSTRING
const typedef ALCchar *ALC_APIENTRY * LPALCGETSTRING(ALCdevice *device, ALCenum param)