Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/system/include/AL/alc.h
6174 views
1
#ifndef OPENAL_ALC_H__
2
#define OPENAL_ALC_H__
3
4
#ifdef __cplusplus
5
extern "C" {
6
#endif
7
8
#define ALCAPI ALC_API
9
#define ALCAPIENTRY ALC_APIENTRY
10
#define ALC_ALL_ATTRIBUTES 0x1003
11
#define ALC_ALL_DEVICES_SPECIFIER 0x1013
12
#define ALC_ATTRIBUTES_SIZE 0x1002
13
#define ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER 0x311
14
#define ALC_CAPTURE_DEVICE_SPECIFIER 0x310
15
#define ALC_CAPTURE_SAMPLES 0x312
16
#define ALC_DEFAULT_ALL_DEVICES_SPECIFIER 0x1012
17
#define ALC_DEFAULT_DEVICE_SPECIFIER 0x1004
18
#define ALC_DEVICE_SPECIFIER 0x1005
19
#define ALC_ENUMERATE_ALL_EXT 1
20
#define ALC_EXTENSIONS 0x1006
21
#define ALC_EXT_CAPTURE 1
22
#define ALC_FALSE 0
23
#define ALC_FREQUENCY 0x1007
24
#define ALC_INVALID 0
25
#define ALC_INVALID_CONTEXT 0xA002
26
#define ALC_INVALID_DEVICE 0xA001
27
#define ALC_INVALID_ENUM 0xA003
28
#define ALC_INVALID_VALUE 0xA004
29
#define ALC_MAJOR_VERSION 0x1000
30
#define ALC_MINOR_VERSION 0x1001
31
#define ALC_MONO_SOURCES 0x1010
32
#define ALC_NO_ERROR 0
33
#define ALC_OUT_OF_MEMORY 0xA005
34
#define ALC_REFRESH 0x1008
35
#define ALC_STEREO_SOURCES 0x1011
36
#define ALC_SYNC 0x1009
37
#define ALC_TRUE 1
38
#define ALC_VERSION_0_1 1
39
#define AL_ALC_H
40
41
struct ALCcontext_struct;
42
struct ALCdevice_struct;
43
typedef char ALCboolean;
44
typedef char ALCchar;
45
typedef double ALCdouble;
46
typedef float ALCfloat;
47
typedef int ALCenum;
48
typedef int ALCint;
49
typedef int ALCsizei;
50
typedef short ALCshort;
51
typedef signed char ALCbyte;
52
typedef struct ALCcontext_struct ALCcontext;
53
typedef struct ALCdevice_struct ALCdevice;
54
typedef unsigned char ALCubyte;
55
typedef unsigned int ALCuint;
56
typedef unsigned short ALCushort;
57
typedef void ALCvoid;
58
59
extern ALCboolean alcCaptureCloseDevice(ALCdevice *device);
60
extern ALCboolean alcCloseDevice(ALCdevice *device);
61
extern ALCboolean alcIsExtensionPresent(ALCdevice *device, const ALCchar *extname);
62
extern ALCboolean alcMakeContextCurrent(ALCcontext *context);
63
extern ALCcontext *alcCreateContext(ALCdevice *device, const ALCint *attrlist);
64
extern ALCcontext *alcGetCurrentContext(void);
65
extern ALCdevice *alcCaptureOpenDevice(const ALCchar *devicename, ALCuint frequency, ALCenum format, ALCsizei buffersize);
66
extern ALCdevice *alcGetContextsDevice(ALCcontext *context);
67
extern ALCdevice *alcOpenDevice(const ALCchar *devicename);
68
extern ALCenum alcGetEnumValue(ALCdevice *device, const ALCchar *enumname);
69
extern ALCenum alcGetError(ALCdevice *device);
70
extern const ALCchar *alcGetString(ALCdevice *device, ALCenum param);
71
extern void *alcGetProcAddress(ALCdevice *device, const ALCchar *funcname);
72
extern void alcCaptureSamples(ALCdevice *device, ALCvoid *buffer, ALCsizei samples);
73
extern void alcCaptureStart(ALCdevice *device);
74
extern void alcCaptureStop(ALCdevice *device);
75
extern void alcDestroyContext(ALCcontext *context);
76
extern void alcGetIntegerv(ALCdevice *device, ALCenum param, ALCsizei size, ALCint *values);
77
extern void alcProcessContext(ALCcontext *context);
78
extern void alcSuspendContext(ALCcontext *context);
79
80
#ifdef __cplusplus
81
}
82
#endif
83
84
#endif
85
86