5 * OpenAL cross platform audio library
6 * Copyright (C) 1999-2000 by authors.
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the
19 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
21 * Or go to http://www.gnu.org/copyleft/lgpl.html
29 /** ALC boolean type. */
30 typedef char ALCboolean;
32 /** ALC 8bit signed byte. */
35 /** ALC 8bit unsigned byte. */
36 typedef unsigned char ALCubyte;
38 /** ALC 16bit signed short integer type. */
39 typedef short ALCshort;
41 /** ALC 16bit unsigned short integer type. */
42 typedef unsigned short ALCushort;
44 /** ALC 32bit unsigned integer type. */
45 typedef unsigned ALCuint;
47 /** ALC 32bit signed integer type. */
50 /** ALC 32bit floating point type. */
51 typedef float ALCfloat;
53 /** ALC 64bit double point type. */
54 typedef double ALCdouble;
56 /** ALC 32bit type. */
57 typedef unsigned int ALCsizei;
60 //@IODOOM3: "typedef void" doesn't work on gcc.
61 //typedef void ALCvoid;
64 /** ALC enumerations. */
68 #define ALC_INVALID (-1)
76 /** Errors: No Error. */
77 #define ALC_NO_ERROR ALC_FALSE
79 #define ALC_MAJOR_VERSION 0x1000
80 #define ALC_MINOR_VERSION 0x1001
81 #define ALC_ATTRIBUTES_SIZE 0x1002
82 #define ALC_ALL_ATTRIBUTES 0x1003
84 #define ALC_DEFAULT_DEVICE_SPECIFIER 0x1004
85 #define ALC_DEVICE_SPECIFIER 0x1005
86 #define ALC_EXTENSIONS 0x1006
88 #define ALC_FREQUENCY 0x1007
89 #define ALC_REFRESH 0x1008
90 #define ALC_SYNC 0x1009
93 * The device argument does not name a valid dvice.
95 #define ALC_INVALID_DEVICE 0xA001
98 * The context argument does not name a valid context.
100 #define ALC_INVALID_CONTEXT 0xA002
103 * A function was called at inappropriate time,
104 * or in an inappropriate way, causing an illegal state.
105 * This can be an incompatible ALenum, object ID,
108 #define ALC_INVALID_ENUM 0xA003
111 * Illegal value passed as an argument to an AL call.
112 * Applies to parameter values, but not to enumerations.
114 #define ALC_INVALID_VALUE 0xA004
117 * A function could not be completed,
118 * because there is not enough memory available.
120 #define ALC_OUT_OF_MEMORY 0xA005