]> git.jsancho.org Git - lugaru.git/blob - OpenAL/include/AL/alctypes.h
First shot at an OpenAL renderer. Sound effects work, no music.
[lugaru.git] / OpenAL / include / AL / alctypes.h
1 #ifndef _ALCTYPES_H_
2 #define _ALCTYPES_H_
3
4 #if !defined(_WIN32)
5 struct _AL_device;
6 typedef struct _AL_device ALCdevice;
7
8 typedef void ALCcontext;
9 #endif /* _WIN32 */
10
11 typedef int ALCenum;
12
13 /* Enumerant values begin at column 50. No tabs. */
14
15 /* bad value */
16 #define ALC_INVALID                              0
17
18 /**
19  * followed by <int> Hz
20  */
21 #define ALC_FREQUENCY                            0x100
22
23 /**
24  * followed by <int> Hz
25  */
26 #define ALC_REFRESH                              0x101
27
28 /**
29  * followed by AL_TRUE, AL_FALSE
30  */
31 #define ALC_SYNC                                 0x102
32
33 /**
34  * errors
35  */
36
37 /**
38  * No error
39  */
40 #define ALC_NO_ERROR                             0
41
42 /**
43  * No device
44  */
45 #define ALC_INVALID_DEVICE                       0x200
46
47 /**
48  * invalid context ID
49  */
50 #define ALC_INVALID_CONTEXT                      0x201
51
52 /**
53  * bad enum
54  */
55 #define ALC_INVALID_ENUM                         0x202
56
57 /**
58  * bad value
59  */
60 #define ALC_INVALID_VALUE                        0x203
61
62 /**
63  * Out of memory.
64  */
65 #define ALC_OUT_OF_MEMORY                        0x204
66
67
68
69 /**
70  * The Specifier string for default device
71  */
72 #define ALC_DEFAULT_DEVICE_SPECIFIER             0x300
73 #define ALC_DEVICE_SPECIFIER                     0x301
74 #define ALC_EXTENSIONS                           0x302
75
76 #define ALC_MAJOR_VERSION                        0x303
77 #define ALC_MINOR_VERSION                        0x304
78
79 #define ALC_ATTRIBUTES_SIZE                      0x305
80 #define ALC_ALL_ATTRIBUTES                       0x306
81
82 /**
83  * Not sure if the following are conformant
84  */
85 #define ALC_FALSE                                0
86 #define ALC_TRUE                                 (!(ALC_FALSE))
87
88 #endif /* _ALCTYPES_H */