add: ALC constants added

This commit is contained in:
Brian Matzon 2002-08-26 15:28:01 +00:00
parent 0106d1ae4e
commit b7bfb49c7c
1 changed files with 74 additions and 23 deletions

View File

@ -42,8 +42,59 @@
*/
public class ALC {
/** Bad value */
public static final int INVALID = -1;
/** Boolean False */
public static final int FALSE = 0;
/** Boolean True */
public static final int TRUE = 1;
/** Errors: No Error */
public static final int NO_ERROR = FALSE;
public static final int MAJOR_VERSION = 0x1000;
public static final int MINOR_VERSION = 0x1001;
public static final int ATTRIBUTES_SIZE = 0x1002;
public static final int ALL_ATTRIBUTES = 0x1003;
public static final int DEFAULT_DEVICE_SPECIFIER = 0x1004;
public static final int DEVICE_SPECIFIER = 0x1005;
public static final int EXTENSIONS = 0x1006;
public static final int FREQUENCY = 0x1007;
public static final int REFRESH = 0x1008;
public static final int SYNC = 0x1009;
/** The device argument does not name a valid device */
public static final int INVALID_DEVICE = 0xA001;
/** The context argument does not name a valid context */
public static final int INVALID_CONTEXT = 0xA002;
/**
* A function was called at inappropriate time, or in an inappropriate way,
* causing an illegal state. This can be an incompatible ALenum, object ID,
* and/or function.
*/
public static final int INVALID_ENUM = 0xA003;
/**
* Illegal value passed as an argument to an AL call.
* Applies to parameter values, but not to enumerations.
*/
public static final int INVALID_VALUE = 0xA004;
/**
* A function could not be completed, because there is not enough
* memory available.
*/
public static final int OUT_OF_MEMORY = 0xA005;
static {
try {
System.out.println("using " + org.lwjgl.Sys.getLibraryName());
System.loadLibrary(org.lwjgl.Sys.getLibraryName());
} catch (UnsatisfiedLinkError ule) {
System.out.println("Failed to load OpenAL library: " + org.lwjgl.Sys.getLibraryName());