Move to more standard headers. Apparently the ALC enums changed at some point.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 18 May 2012 20:53:36 -0400
changeset 93 ce434a210f60
parent 92 300ace4f9450
child 94 c258b2c78a4b
Move to more standard headers. Apparently the ALC enums changed at some point.
include/AL/alctypes.h
--- a/include/AL/alctypes.h	Fri May 18 20:51:42 2012 -0400
+++ b/include/AL/alctypes.h	Fri May 18 20:53:36 2012 -0400
@@ -12,23 +12,36 @@
 
 /* Enumerant values begin at column 50. No tabs. */
 
-/* bad value */
-#define ALC_INVALID                              0
+/* Boolean False. */
+#define ALC_FALSE                                0
+
+/* Boolean True. */
+#define ALC_TRUE                                 1
 
 /**
  * followed by <int> Hz
  */
-#define ALC_FREQUENCY                            0x100
+#define ALC_FREQUENCY                            0x1007
 
 /**
  * followed by <int> Hz
  */
-#define ALC_REFRESH                              0x101
+#define ALC_REFRESH                              0x1008
 
 /**
  * followed by AL_TRUE, AL_FALSE
  */
-#define ALC_SYNC                                 0x102
+#define ALC_SYNC                                 0x1009
+
+/**
+ * followed by <int> Num of requested Mono (3D) Sources
+ */
+#define ALC_MONO_SOURCES                         0x1010
+
+/**
+ * followed by <int> Num of requested Stereo Sources
+ */
+#define ALC_STEREO_SOURCES                       0x1011
 
 /**
  * errors
@@ -37,52 +50,60 @@
 /**
  * No error
  */
-#define ALC_NO_ERROR                             0
+#define ALC_NO_ERROR                             ALC_FALSE
 
 /**
  * No device
  */
-#define ALC_INVALID_DEVICE                       0x200
+#define ALC_INVALID 0
+#define ALC_INVALID_DEVICE                       0xA001
 
 /**
  * invalid context ID
  */
-#define ALC_INVALID_CONTEXT                      0x201
+#define ALC_INVALID_CONTEXT                      0xA002
 
 /**
  * bad enum
  */
-#define ALC_INVALID_ENUM                         0x202
+#define ALC_INVALID_ENUM                         0xA003
 
 /**
  * bad value
  */
-#define ALC_INVALID_VALUE                        0x203
+#define ALC_INVALID_VALUE                        0xA004
 
 /**
  * Out of memory.
  */
-#define ALC_OUT_OF_MEMORY                        0x204
-
+#define ALC_OUT_OF_MEMORY                        0xA005
 
 
 /**
  * The Specifier string for default device
  */
-#define ALC_DEFAULT_DEVICE_SPECIFIER             0x300
-#define ALC_DEVICE_SPECIFIER                     0x301
-#define ALC_EXTENSIONS                           0x302
+#define ALC_DEFAULT_DEVICE_SPECIFIER             0x1004
+#define ALC_DEVICE_SPECIFIER                     0x1005
+#define ALC_EXTENSIONS                           0x1006
 
-#define ALC_MAJOR_VERSION                        0x303
-#define ALC_MINOR_VERSION                        0x304
+#define ALC_MAJOR_VERSION                        0x1000
+#define ALC_MINOR_VERSION                        0x1001
 
-#define ALC_ATTRIBUTES_SIZE                      0x305
-#define ALC_ALL_ATTRIBUTES                       0x306
+#define ALC_ATTRIBUTES_SIZE                      0x1002
+#define ALC_ALL_ATTRIBUTES                       0x1003
 
 /**
- * Not sure if the following are conformant
+ * ALC_ENUMERATE_ALL_EXT enums
  */
-#define ALC_FALSE                                0
-#define ALC_TRUE                                 (!(ALC_FALSE))
+#define ALC_DEFAULT_ALL_DEVICES_SPECIFIER        0x1012
+#define ALC_ALL_DEVICES_SPECIFIER                0x1013
+
+/**
+ * Capture extension
+ */
+#define ALC_CAPTURE_DEVICE_SPECIFIER             0x310
+#define ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER     0x311
+#define ALC_CAPTURE_SAMPLES                      0x312
+
 
 #endif /* _ALCTYPES_H */