aboutsummaryrefslogtreecommitdiffstats
path: root/code/AL/alctypes.h
blob: 39d428c725d370742a179dbda3bac44bbb6fb387 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#ifndef _ALCTYPES_H_
#define _ALCTYPES_H_

#if !defined(_WIN32)
struct _AL_device;
typedef struct _AL_device ALCdevice;

typedef void ALCcontext;
#endif /* _WIN32 */

typedef int ALCenum;

/* Enumerant values begin at column 50. No tabs. */

/* bad value */
#define ALC_INVALID                              0

/**
 * followed by <int> Hz
 */
#define ALC_FREQUENCY                            0x100

/**
 * followed by <int> Hz
 */
#define ALC_REFRESH                              0x101

/**
 * followed by AL_TRUE, AL_FALSE
 */
#define ALC_SYNC                                 0x102

/**
 * errors
 */

/**
 * No error
 */
#define ALC_NO_ERROR                             0

/**
 * No device
 */
#define ALC_INVALID_DEVICE                       0x200

/**
 * invalid context ID
 */
#define ALC_INVALID_CONTEXT                      0x201

/**
 * bad enum
 */
#define ALC_INVALID_ENUM                         0x202

/**
 * bad value
 */
#define ALC_INVALID_VALUE                        0x203

/**
 * Out of memory.
 */
#define ALC_OUT_OF_MEMORY                        0x204



/**
 * The Specifier string for default device
 */
#define ALC_DEFAULT_DEVICE_SPECIFIER             0x300
#define ALC_DEVICE_SPECIFIER                     0x301
#define ALC_EXTENSIONS                           0x302

#define ALC_MAJOR_VERSION                        0x303
#define ALC_MINOR_VERSION                        0x304

#define ALC_ATTRIBUTES_SIZE                      0x305
#define ALC_ALL_ATTRIBUTES                       0x306

/**
 * Not sure if the following are conformant
 */
#define ALC_FALSE                                0
#define ALC_TRUE                                 (!(ALC_FALSE))

#endif /* _ALCTYPES_H */