aboutsummaryrefslogtreecommitdiffstats
path: root/code/AL/alctypes.h
diff options
context:
space:
mode:
authoricculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-11-26 07:59:00 +0000
committericculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-11-26 07:59:00 +0000
commit26b9cf5a0ca15a80690060daf5f3cbf0576ade28 (patch)
tree354668c8d05c47c654ca72adf170914b17877f1f /code/AL/alctypes.h
parent441c7633e0aa67faa91dc5896ee83e6c29de0ba6 (diff)
downloadioquake3-aero-26b9cf5a0ca15a80690060daf5f3cbf0576ade28.tar.gz
ioquake3-aero-26b9cf5a0ca15a80690060daf5f3cbf0576ade28.zip
SDL and OpenAL headers.
git-svn-id: svn://svn.icculus.org/quake3/trunk@374 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/AL/alctypes.h')
-rw-r--r--code/AL/alctypes.h88
1 files changed, 88 insertions, 0 deletions
diff --git a/code/AL/alctypes.h b/code/AL/alctypes.h
new file mode 100644
index 0000000..39d428c
--- /dev/null
+++ b/code/AL/alctypes.h
@@ -0,0 +1,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 */