annotate lib/OpenAL/alc.h @ 2394:2fe8feb3dcd1

pMovie renamed to pMovie_Track and other
author Ritor1
date Fri, 04 Jul 2014 18:15:46 +0600
parents 992d2e6f907d
children
rev   line source
2134
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
1 #ifndef AL_ALC_H
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
2 #define AL_ALC_H
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
3
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
4 #if defined(__cplusplus)
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
5 extern "C" {
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
6 #endif
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
7
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
8 #if defined(_WIN32) && !defined(_XBOX)
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
9 /* _OPENAL32LIB is deprecated */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
10 #if defined(AL_BUILD_LIBRARY) || defined (_OPENAL32LIB)
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
11 #define ALC_API __declspec(dllexport)
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
12 #else
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
13 #define ALC_API __declspec(dllimport)
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
14 #endif
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
15 #else
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
16 #if defined(AL_BUILD_LIBRARY) && defined(HAVE_GCC_VISIBILITY)
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
17 #define ALC_API __attribute__((visibility("default")))
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
18 #else
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
19 #define ALC_API extern
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
20 #endif
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
21 #endif
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
22
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
23 #if defined(_WIN32)
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
24 #define ALC_APIENTRY __cdecl
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
25 #else
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
26 #define ALC_APIENTRY
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
27 #endif
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
28
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
29 #if defined(TARGET_OS_MAC) && TARGET_OS_MAC
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
30 #pragma export on
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
31 #endif
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
32
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
33 /*
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
34 * The ALCAPI, ALCAPIENTRY, and ALC_INVALID macros are deprecated, but are
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
35 * included for applications porting code from AL 1.0
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
36 */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
37 #define ALCAPI ALC_API
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
38 #define ALCAPIENTRY ALC_APIENTRY
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
39 #define ALC_INVALID 0
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
40
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
41
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
42 #define ALC_VERSION_0_1 1
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
43
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
44 typedef struct ALCdevice_struct ALCdevice;
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
45 typedef struct ALCcontext_struct ALCcontext;
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
46
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
47
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
48 /** 8-bit boolean */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
49 typedef char ALCboolean;
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
50
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
51 /** character */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
52 typedef char ALCchar;
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
53
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
54 /** signed 8-bit 2's complement integer */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
55 typedef char ALCbyte;
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
56
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
57 /** unsigned 8-bit integer */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
58 typedef unsigned char ALCubyte;
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
59
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
60 /** signed 16-bit 2's complement integer */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
61 typedef short ALCshort;
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
62
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
63 /** unsigned 16-bit integer */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
64 typedef unsigned short ALCushort;
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
65
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
66 /** signed 32-bit 2's complement integer */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
67 typedef int ALCint;
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
68
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
69 /** unsigned 32-bit integer */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
70 typedef unsigned int ALCuint;
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
71
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
72 /** non-negative 32-bit binary integer size */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
73 typedef int ALCsizei;
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
74
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
75 /** enumerated 32-bit value */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
76 typedef int ALCenum;
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
77
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
78 /** 32-bit IEEE754 floating-point */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
79 typedef float ALCfloat;
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
80
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
81 /** 64-bit IEEE754 floating-point */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
82 typedef double ALCdouble;
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
83
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
84 /** void type (for opaque pointers only) */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
85 typedef void ALCvoid;
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
86
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
87
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
88 /* Enumerant values begin at column 50. No tabs. */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
89
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
90 /* Boolean False. */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
91 #define ALC_FALSE 0
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
92
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
93 /* Boolean True. */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
94 #define ALC_TRUE 1
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
95
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
96 /**
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
97 * followed by <int> Hz
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
98 */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
99 #define ALC_FREQUENCY 0x1007
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
100
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
101 /**
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
102 * followed by <int> Hz
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
103 */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
104 #define ALC_REFRESH 0x1008
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
105
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
106 /**
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
107 * followed by AL_TRUE, AL_FALSE
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
108 */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
109 #define ALC_SYNC 0x1009
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
110
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
111 /**
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
112 * followed by <int> Num of requested Mono (3D) Sources
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
113 */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
114 #define ALC_MONO_SOURCES 0x1010
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
115
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
116 /**
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
117 * followed by <int> Num of requested Stereo Sources
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
118 */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
119 #define ALC_STEREO_SOURCES 0x1011
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
120
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
121 /**
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
122 * errors
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
123 */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
124
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
125 /**
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
126 * No error
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
127 */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
128 #define ALC_NO_ERROR ALC_FALSE
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
129
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
130 /**
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
131 * No device
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
132 */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
133 #define ALC_INVALID_DEVICE 0xA001
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
134
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
135 /**
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
136 * invalid context ID
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
137 */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
138 #define ALC_INVALID_CONTEXT 0xA002
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
139
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
140 /**
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
141 * bad enum
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
142 */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
143 #define ALC_INVALID_ENUM 0xA003
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
144
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
145 /**
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
146 * bad value
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
147 */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
148 #define ALC_INVALID_VALUE 0xA004
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
149
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
150 /**
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
151 * Out of memory.
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
152 */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
153 #define ALC_OUT_OF_MEMORY 0xA005
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
154
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
155
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
156 /**
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
157 * The Specifier string for default device
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
158 */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
159 #define ALC_DEFAULT_DEVICE_SPECIFIER 0x1004
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
160 #define ALC_DEVICE_SPECIFIER 0x1005
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
161 #define ALC_EXTENSIONS 0x1006
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
162
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
163 #define ALC_MAJOR_VERSION 0x1000
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
164 #define ALC_MINOR_VERSION 0x1001
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
165
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
166 #define ALC_ATTRIBUTES_SIZE 0x1002
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
167 #define ALC_ALL_ATTRIBUTES 0x1003
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
168
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
169 /**
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
170 * ALC_ENUMERATE_ALL_EXT enums
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
171 */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
172 #define ALC_DEFAULT_ALL_DEVICES_SPECIFIER 0x1012
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
173 #define ALC_ALL_DEVICES_SPECIFIER 0x1013
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
174
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
175 /**
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
176 * Capture extension
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
177 */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
178 #define ALC_CAPTURE_DEVICE_SPECIFIER 0x310
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
179 #define ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER 0x311
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
180 #define ALC_CAPTURE_SAMPLES 0x312
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
181
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
182
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
183 /*
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
184 * Context Management
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
185 */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
186 ALC_API ALCcontext * ALC_APIENTRY alcCreateContext( ALCdevice *device, const ALCint* attrlist );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
187
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
188 ALC_API ALCboolean ALC_APIENTRY alcMakeContextCurrent( ALCcontext *context );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
189
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
190 ALC_API void ALC_APIENTRY alcProcessContext( ALCcontext *context );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
191
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
192 ALC_API void ALC_APIENTRY alcSuspendContext( ALCcontext *context );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
193
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
194 ALC_API void ALC_APIENTRY alcDestroyContext( ALCcontext *context );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
195
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
196 ALC_API ALCcontext * ALC_APIENTRY alcGetCurrentContext( void );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
197
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
198 ALC_API ALCdevice* ALC_APIENTRY alcGetContextsDevice( ALCcontext *context );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
199
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
200
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
201 /*
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
202 * Device Management
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
203 */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
204 ALC_API ALCdevice * ALC_APIENTRY alcOpenDevice( const ALCchar *devicename );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
205
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
206 ALC_API ALCboolean ALC_APIENTRY alcCloseDevice( ALCdevice *device );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
207
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
208
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
209 /*
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
210 * Error support.
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
211 * Obtain the most recent Context error
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
212 */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
213 ALC_API ALCenum ALC_APIENTRY alcGetError( ALCdevice *device );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
214
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
215
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
216 /*
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
217 * Extension support.
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
218 * Query for the presence of an extension, and obtain any appropriate
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
219 * function pointers and enum values.
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
220 */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
221 ALC_API ALCboolean ALC_APIENTRY alcIsExtensionPresent( ALCdevice *device, const ALCchar *extname );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
222
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
223 ALC_API void * ALC_APIENTRY alcGetProcAddress( ALCdevice *device, const ALCchar *funcname );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
224
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
225 ALC_API ALCenum ALC_APIENTRY alcGetEnumValue( ALCdevice *device, const ALCchar *enumname );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
226
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
227
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
228 /*
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
229 * Query functions
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
230 */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
231 ALC_API const ALCchar * ALC_APIENTRY alcGetString( ALCdevice *device, ALCenum param );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
232
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
233 ALC_API void ALC_APIENTRY alcGetIntegerv( ALCdevice *device, ALCenum param, ALCsizei size, ALCint *data );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
234
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
235
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
236 /*
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
237 * Capture functions
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
238 */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
239 ALC_API ALCdevice* ALC_APIENTRY alcCaptureOpenDevice( const ALCchar *devicename, ALCuint frequency, ALCenum format, ALCsizei buffersize );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
240
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
241 ALC_API ALCboolean ALC_APIENTRY alcCaptureCloseDevice( ALCdevice *device );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
242
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
243 ALC_API void ALC_APIENTRY alcCaptureStart( ALCdevice *device );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
244
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
245 ALC_API void ALC_APIENTRY alcCaptureStop( ALCdevice *device );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
246
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
247 ALC_API void ALC_APIENTRY alcCaptureSamples( ALCdevice *device, ALCvoid *buffer, ALCsizei samples );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
248
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
249 /*
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
250 * Pointer-to-function types, useful for dynamically getting ALC entry points.
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
251 */
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
252 typedef ALCcontext * (ALC_APIENTRY *LPALCCREATECONTEXT) (ALCdevice *device, const ALCint *attrlist);
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
253 typedef ALCboolean (ALC_APIENTRY *LPALCMAKECONTEXTCURRENT)( ALCcontext *context );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
254 typedef void (ALC_APIENTRY *LPALCPROCESSCONTEXT)( ALCcontext *context );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
255 typedef void (ALC_APIENTRY *LPALCSUSPENDCONTEXT)( ALCcontext *context );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
256 typedef void (ALC_APIENTRY *LPALCDESTROYCONTEXT)( ALCcontext *context );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
257 typedef ALCcontext * (ALC_APIENTRY *LPALCGETCURRENTCONTEXT)( void );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
258 typedef ALCdevice * (ALC_APIENTRY *LPALCGETCONTEXTSDEVICE)( ALCcontext *context );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
259 typedef ALCdevice * (ALC_APIENTRY *LPALCOPENDEVICE)( const ALCchar *devicename );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
260 typedef ALCboolean (ALC_APIENTRY *LPALCCLOSEDEVICE)( ALCdevice *device );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
261 typedef ALCenum (ALC_APIENTRY *LPALCGETERROR)( ALCdevice *device );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
262 typedef ALCboolean (ALC_APIENTRY *LPALCISEXTENSIONPRESENT)( ALCdevice *device, const ALCchar *extname );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
263 typedef void * (ALC_APIENTRY *LPALCGETPROCADDRESS)(ALCdevice *device, const ALCchar *funcname );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
264 typedef ALCenum (ALC_APIENTRY *LPALCGETENUMVALUE)(ALCdevice *device, const ALCchar *enumname );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
265 typedef const ALCchar* (ALC_APIENTRY *LPALCGETSTRING)( ALCdevice *device, ALCenum param );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
266 typedef void (ALC_APIENTRY *LPALCGETINTEGERV)( ALCdevice *device, ALCenum param, ALCsizei size, ALCint *dest );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
267 typedef ALCdevice * (ALC_APIENTRY *LPALCCAPTUREOPENDEVICE)( const ALCchar *devicename, ALCuint frequency, ALCenum format, ALCsizei buffersize );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
268 typedef ALCboolean (ALC_APIENTRY *LPALCCAPTURECLOSEDEVICE)( ALCdevice *device );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
269 typedef void (ALC_APIENTRY *LPALCCAPTURESTART)( ALCdevice *device );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
270 typedef void (ALC_APIENTRY *LPALCCAPTURESTOP)( ALCdevice *device );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
271 typedef void (ALC_APIENTRY *LPALCCAPTURESAMPLES)( ALCdevice *device, ALCvoid *buffer, ALCsizei samples );
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
272
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
273 #if defined(TARGET_OS_MAC) && TARGET_OS_MAC
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
274 #pragma export off
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
275 #endif
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
276
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
277 #if defined(__cplusplus)
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
278 }
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
279 #endif
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
280
992d2e6f907d preparation for libavcodec
zipi
parents:
diff changeset
281 #endif /* AL_ALC_H */