|
From: Elias N. <eli...@us...> - 2005-04-12 10:30:20
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27429/src/java/org/lwjgl/openal Modified Files: ALC.java ALCcontext.java ALCdevice.java Log Message: Converted ALC pointers from int to long Index: ALCcontext.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/ALCcontext.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- ALCcontext.java 20 Aug 2004 06:22:53 -0000 1.12 +++ ALCcontext.java 12 Apr 2005 10:30:03 -0000 1.13 @@ -46,14 +46,14 @@ final class ALCcontext { /** address of actual context */ - final int context; + final long context; /** * Creates a new instance of ALCcontext * * @param context address of actual context */ - ALCcontext(int context) { + ALCcontext(long context) { this.context = context; } Index: ALC.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/ALC.java,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- ALC.java 1 Aug 2004 21:26:25 -0000 1.25 +++ ALC.java 12 Apr 2005 10:30:03 -0000 1.26 @@ -167,7 +167,7 @@ return nalcGetString(AL.device.device, pname); } - native static String nalcGetString(int device, int pname); + native static String nalcGetString(long device, int pname); /** * The application can query ALC for information using an integer query function. @@ -194,7 +194,7 @@ nalcGetIntegerv(AL.device.device, pname, integerdata.remaining(), integerdata, integerdata.position()); } - native static void nalcGetIntegerv(int device, int pname, int size, Buffer integerdata, int offset); + native static void nalcGetIntegerv(long device, int pname, int size, Buffer integerdata, int offset); /** * The <code>alcOpenDevice</code> function allows the application (i.e. the client program) to @@ -219,7 +219,7 @@ * * @param device address of native device to close */ - native static void alcCloseDevice(int device); + native static void alcCloseDevice(long device); /** * A context is created using <code>alcCreateContext</code>. The device parameter has to be a valid @@ -236,7 +236,7 @@ * @param attrList Buffer to read attributes from * @return New context, or null if creation failed */ - native static ALCcontext alcCreateContext(int device, IntBuffer attrList); + native static ALCcontext alcCreateContext(long device, IntBuffer attrList); /** * To make a Context current with respect to AL Operation (state changes by issueing @@ -252,7 +252,7 @@ * @param context address of context to make current * @return true if successfull, false if not */ - native static int alcMakeContextCurrent(int context); + native static int alcMakeContextCurrent(long context); /** * The current context is the only context accessible to state changes by AL commands @@ -269,7 +269,7 @@ nalcProcessContext(AL.context.context); } - native static void nalcProcessContext(int context); + native static void nalcProcessContext(long context); /** * The application can query for, and obtain an handle to, the current context for the @@ -285,7 +285,7 @@ * @param context address of context to get device for * @param ALCdevice associated with context */ - native static ALCdevice alcGetContextsDevice(int context); + native static ALCdevice alcGetContextsDevice(long context); /** * The application can suspend any context from processing (including the current @@ -302,7 +302,7 @@ public static void alcSuspendContext() { nalcSuspendContext(AL.context.context); } - native static void nalcSuspendContext(int context); + native static void nalcSuspendContext(long context); /** * The correct way to destroy a context is to first release it using <code>alcMakeCurrent</code> and @@ -310,7 +310,7 @@ * * @param context address of context to Destroy */ - native static void alcDestroyContext(int context); + native static void alcDestroyContext(long context); /** * ALC uses the same conventions and mechanisms as AL for error handling. In @@ -331,7 +331,7 @@ return nalcGetError(AL.device.device); } - native static int nalcGetError(int device); + native static int nalcGetError(long device); /** * Verify that a given extension is available for the current context and the device it @@ -346,7 +346,7 @@ return nalcIsExtensionPresent(AL.device.device, extName); } - native static boolean nalcIsExtensionPresent(int device, String extName); + native static boolean nalcIsExtensionPresent(long device, String extName); /** * Enumeration/token values are device independend, but tokens defined for @@ -362,5 +362,5 @@ return nalcGetEnumValue(AL.device.device, enumName); } - native static int nalcGetEnumValue(int device, String enumName); + native static int nalcGetEnumValue(long device, String enumName); } Index: ALCdevice.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/ALCdevice.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- ALCdevice.java 12 Jun 2004 20:28:22 -0000 1.8 +++ ALCdevice.java 12 Apr 2005 10:30:04 -0000 1.9 @@ -42,14 +42,14 @@ final class ALCdevice { /** address of actual device */ - final int device; + final long device; /** * Creates a new instance of ALCdevice * * @param device address of actual device */ - ALCdevice(int device) { + ALCdevice(long device) { this.device = device; } -} \ No newline at end of file +} |