|
From: Brian M. <ma...@us...> - 2003-04-27 18:37:42
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common In directory sc8-pr-cvs1:/tmp/cvs-serv21877a/native/common Modified Files: org_lwjgl_openal_ALC.cpp org_lwjgl_openal_ALC.h org_lwjgl_openal_BaseAL.h org_lwjgl_openal_CoreAL.h Log Message: New OpenAL programming model: no context/device fiddling easier initialization Index: org_lwjgl_openal_ALC.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_openal_ALC.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/org_lwjgl_openal_ALC.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- org_lwjgl_openal_ALC.cpp 24 Mar 2003 11:56:05 -0000 1.6 +++ org_lwjgl_openal_ALC.cpp 27 Apr 2003 18:37:38 -0000 1.7 @@ -74,11 +74,7 @@ * C Specification: * ALubyte * alcGetString(ALCdevice *device, ALenum token); */ -JNIEXPORT jstring JNICALL Java_org_lwjgl_openal_ALC_getString (JNIEnv *env, jobject obj, jobject device, jint token) { - jclass class_device = env->GetObjectClass(device); - jfieldID field_device = env->GetFieldID(class_device, "device", "I"); - jint deviceaddress = env->GetIntField(device, field_device); - +JNIEXPORT jstring JNICALL Java_org_lwjgl_openal_ALC_nGetString (JNIEnv *env, jobject obj, jint deviceaddress, jint token) { const char* alcString = (const char*) alcGetString((ALCdevice*) deviceaddress, (ALenum) token); if(alcString == NULL) { return NULL; @@ -96,11 +92,7 @@ * C Specification: * ALvoid alcGetIntegerv(ALCdevice *device, ALenum token, ALsizei size, ALint *dest); */ -JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_getIntegerv (JNIEnv *env, jobject obj, jobject device, jint token, jint size, jint dest) { - jclass device_class = env->GetObjectClass(device); - jfieldID device_field = env->GetFieldID(device_class, "device", "I"); - jint deviceaddress = env->GetIntField(device, device_field); - +JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_nGetIntegerv (JNIEnv *env, jobject obj, jint deviceaddress, jint token, jint size, jint dest) { alcGetIntegerv((ALCdevice*) deviceaddress, (ALenum) token, (ALsizei) size, (ALint*) dest); CHECK_ALC_ERROR } @@ -157,11 +149,7 @@ * C Specification: * void alcCloseDevice( ALCdevice *dev ); */ -JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_closeDevice (JNIEnv *env, jobject obj, jobject device) { - jclass device_class = env->GetObjectClass(device); - jfieldID device_field = env->GetFieldID(device_class, "device", "I"); - jint deviceaddress = env->GetIntField(device, device_field); - +JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_closeDevice (JNIEnv *env, jobject obj, jint deviceaddress) { alcCloseDevice((ALCdevice*) deviceaddress); CHECK_ALC_ERROR } @@ -172,12 +160,7 @@ * C Specification: * ALCcontext* alcCreateContext( ALCdevice *dev, ALint* attrlist ); */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_openal_ALC_createContext (JNIEnv *env, jobject obj, jobject device, jint attrlist) { - /* get device address */ - jclass device_class = env->GetObjectClass(device); - jfieldID device_field = env->GetFieldID(device_class, "device", "I"); - jint deviceaddress = env->GetIntField(device, device_field); - +JNIEXPORT jobject JNICALL Java_org_lwjgl_openal_ALC_createContext (JNIEnv *env, jobject obj, jint deviceaddress, jint attrlist) { ALCcontext* context = alcCreateContext((ALCdevice*) deviceaddress, (ALint*) attrlist); /* if error - get out */ @@ -207,16 +190,10 @@ * C Specification: * ALCboolean alcMakeContextCurrent(ALCcontext *context); */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_ALC_makeContextCurrent (JNIEnv *env, jobject obj, jobject context) { - if(context == NULL) { +JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_ALC_makeContextCurrent (JNIEnv *env, jobject obj, jint contextaddress) { + if(contextaddress == NULL) { return alcMakeContextCurrent(NULL); } - - /* get context address */ - jclass context_class = env->GetObjectClass(context); - jfieldID context_field = env->GetFieldID(context_class, "context", "I"); - jint contextaddress = env->GetIntField(context, context_field); - return alcMakeContextCurrent((ALCcontext*) contextaddress); } @@ -226,12 +203,7 @@ * C Specification: * void alcProcessContext(ALCcontext *context); */ -JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_processContext (JNIEnv *env, jobject obj, jobject context) { - /* get context address */ - jclass context_class = env->GetObjectClass(context); - jfieldID context_field = env->GetFieldID(context_class, "context", "I"); - jint contextaddress = env->GetIntField(context, context_field); - +JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_nProcessContext (JNIEnv *env, jobject obj, jint contextaddress) { alcProcessContext((ALCcontext*) contextaddress); } @@ -269,12 +241,7 @@ * C Specification: * ALCdevice* alcGetContextsDevice(ALCcontext *context); */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_openal_ALC_getContextsDevice (JNIEnv *env, jobject obj, jobject context) { - - /* get context address */ - jclass context_class = env->GetObjectClass(context); - jfieldID context_field = env->GetFieldID(context_class, "context", "I"); - jint contextaddress = env->GetIntField(context, context_field); +JNIEXPORT jobject JNICALL Java_org_lwjgl_openal_ALC_getContextsDevice (JNIEnv *env, jobject obj, jint contextaddress) { ALCdevice* device = alcGetContextsDevice((ALCcontext*) contextaddress); if(device == NULL) { @@ -302,12 +269,7 @@ * C Specification: * void alcSuspendContext(ALCcontext *context); */ -JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_suspendContext (JNIEnv *env, jobject obj, jobject context) { - /* get context address */ - jclass context_class = env->GetObjectClass(context); - jfieldID context_field = env->GetFieldID(context_class, "context", "I"); - jint contextaddress = env->GetIntField(context, context_field); - +JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_suspendContext (JNIEnv *env, jobject obj, jint contextaddress) { alcSuspendContext((ALCcontext*) contextaddress); } @@ -317,12 +279,7 @@ * C Specification: * void alcDestroyContext(ALCcontext *context); */ -JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_destroyContext (JNIEnv *env, jobject obj, jobject context) { - /* get context address */ - jclass context_class = env->GetObjectClass(context); - jfieldID context_field = env->GetFieldID(context_class, "context", "I"); - jint contextaddress = env->GetIntField(context, context_field); - +JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_destroyContext (JNIEnv *env, jobject obj, jint contextaddress) { alcDestroyContext((ALCcontext*) contextaddress); } @@ -332,12 +289,7 @@ * C Specification: * ALCenum alcGetError(ALCdevice *device); */ -JNIEXPORT jint JNICALL Java_org_lwjgl_openal_ALC_getError (JNIEnv *env, jobject obj, jobject device) { - /* get device address */ - jclass device_class = env->GetObjectClass(device); - jfieldID device_field = env->GetFieldID(device_class, "device", "I"); - jint deviceaddress = env->GetIntField(device, device_field); - +JNIEXPORT jint JNICALL Java_org_lwjgl_openal_ALC_nGetError (JNIEnv *env, jobject obj, jint deviceaddress) { jint result = alcGetError((ALCdevice*) deviceaddress); CHECK_ALC_ERROR return result; @@ -349,12 +301,7 @@ * C Specification: * ALboolean alcIsExtensionPresent(ALCdevice *device, ALubyte *extName); */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_ALC_isExtensionPresent (JNIEnv *env, jobject obj, jobject device, jstring extName) { - /* get device address */ - jclass device_class = env->GetObjectClass(device); - jfieldID device_field = env->GetFieldID(device_class, "device", "I"); - jint deviceaddress = env->GetIntField(device, device_field); - +JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_ALC_nIsExtensionPresent (JNIEnv *env, jobject obj, jint deviceaddress, jstring extName) { /* get extension */ ALubyte* functionname = (ALubyte*) (env->GetStringUTFChars(extName, 0)); @@ -372,12 +319,7 @@ * C Specification: * ALenum alcGetEnumValue(ALCdevice *device, ALubyte *enumName); */ -JNIEXPORT jint JNICALL Java_org_lwjgl_openal_ALC_getEnumValue (JNIEnv *env, jobject obj, jobject device, jstring enumName) { - /* get device address */ - jclass device_class = env->GetObjectClass(device); - jfieldID device_field = env->GetFieldID(device_class, "device", "I"); - jint deviceaddress = env->GetIntField(device, device_field); - +JNIEXPORT jint JNICALL Java_org_lwjgl_openal_ALC_nGetEnumValue (JNIEnv *env, jobject obj, jint deviceaddress, jstring enumName) { /* get extension */ ALubyte* enumerationname = (ALubyte*) (env->GetStringUTFChars(enumName, 0)); Index: org_lwjgl_openal_ALC.h CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_openal_ALC.h =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/org_lwjgl_openal_ALC.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- org_lwjgl_openal_ALC.h 6 Sep 2002 23:36:34 -0000 1.3 +++ org_lwjgl_openal_ALC.h 27 Apr 2003 18:37:38 -0000 1.4 @@ -1,3 +1,35 @@ +/* + * Copyright (c) 2002 Lightweight Java Game Library Project + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * * Neither the name of 'Lightweight Java Game Library' nor the names of + * its contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class org_lwjgl_openal_ALC */ @@ -7,6 +39,45 @@ #ifdef __cplusplus extern "C" { #endif +/* Inaccessible static: created */ +#undef org_lwjgl_openal_ALC_INVALID +#define org_lwjgl_openal_ALC_INVALID -1L +#undef org_lwjgl_openal_ALC_FALSE +#define org_lwjgl_openal_ALC_FALSE 0L +#undef org_lwjgl_openal_ALC_TRUE +#define org_lwjgl_openal_ALC_TRUE 1L +#undef org_lwjgl_openal_ALC_NO_ERROR +#define org_lwjgl_openal_ALC_NO_ERROR 0L +#undef org_lwjgl_openal_ALC_MAJOR_VERSION +#define org_lwjgl_openal_ALC_MAJOR_VERSION 4096L +#undef org_lwjgl_openal_ALC_MINOR_VERSION +#define org_lwjgl_openal_ALC_MINOR_VERSION 4097L +#undef org_lwjgl_openal_ALC_ATTRIBUTES_SIZE +#define org_lwjgl_openal_ALC_ATTRIBUTES_SIZE 4098L +#undef org_lwjgl_openal_ALC_ALL_ATTRIBUTES +#define org_lwjgl_openal_ALC_ALL_ATTRIBUTES 4099L +#undef org_lwjgl_openal_ALC_DEFAULT_DEVICE_SPECIFIER +#define org_lwjgl_openal_ALC_DEFAULT_DEVICE_SPECIFIER 4100L +#undef org_lwjgl_openal_ALC_DEVICE_SPECIFIER +#define org_lwjgl_openal_ALC_DEVICE_SPECIFIER 4101L +#undef org_lwjgl_openal_ALC_EXTENSIONS +#define org_lwjgl_openal_ALC_EXTENSIONS 4102L +#undef org_lwjgl_openal_ALC_FREQUENCY +#define org_lwjgl_openal_ALC_FREQUENCY 4103L +#undef org_lwjgl_openal_ALC_REFRESH +#define org_lwjgl_openal_ALC_REFRESH 4104L +#undef org_lwjgl_openal_ALC_SYNC +#define org_lwjgl_openal_ALC_SYNC 4105L +#undef org_lwjgl_openal_ALC_INVALID_DEVICE +#define org_lwjgl_openal_ALC_INVALID_DEVICE 40961L +#undef org_lwjgl_openal_ALC_INVALID_CONTEXT +#define org_lwjgl_openal_ALC_INVALID_CONTEXT 40962L +#undef org_lwjgl_openal_ALC_INVALID_ENUM +#define org_lwjgl_openal_ALC_INVALID_ENUM 40963L +#undef org_lwjgl_openal_ALC_INVALID_VALUE +#define org_lwjgl_openal_ALC_INVALID_VALUE 40964L +#undef org_lwjgl_openal_ALC_OUT_OF_MEMORY +#define org_lwjgl_openal_ALC_OUT_OF_MEMORY 40965L /* * Class: org_lwjgl_openal_ALC * Method: nCreate @@ -25,19 +96,19 @@ /* * Class: org_lwjgl_openal_ALC - * Method: getString - * Signature: (Lorg/lwjgl/openal/ALCdevice;I)Ljava/lang/String; + * Method: nGetString + * Signature: (II)Ljava/lang/String; */ -JNIEXPORT jstring JNICALL Java_org_lwjgl_openal_ALC_getString - (JNIEnv *, jobject, jobject, jint); +JNIEXPORT jstring JNICALL Java_org_lwjgl_openal_ALC_nGetString + (JNIEnv *, jobject, jint, jint); /* * Class: org_lwjgl_openal_ALC - * Method: getIntegerv - * Signature: (Lorg/lwjgl/openal/ALCdevice;III)V + * Method: nGetIntegerv + * Signature: (IIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_getIntegerv - (JNIEnv *, jobject, jobject, jint, jint, jint); +JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_nGetIntegerv + (JNIEnv *, jobject, jint, jint, jint, jint); /* * Class: org_lwjgl_openal_ALC @@ -50,34 +121,34 @@ /* * Class: org_lwjgl_openal_ALC * Method: closeDevice - * Signature: (Lorg/lwjgl/openal/ALCdevice;)V + * Signature: (I)V */ JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_closeDevice - (JNIEnv *, jobject, jobject); + (JNIEnv *, jobject, jint); /* * Class: org_lwjgl_openal_ALC * Method: createContext - * Signature: (Lorg/lwjgl/openal/ALCdevice;I)Lorg/lwjgl/openal/ALCcontext; + * Signature: (II)Lorg/lwjgl/openal/ALCcontext; */ JNIEXPORT jobject JNICALL Java_org_lwjgl_openal_ALC_createContext - (JNIEnv *, jobject, jobject, jint); + (JNIEnv *, jobject, jint, jint); /* * Class: org_lwjgl_openal_ALC * Method: makeContextCurrent - * Signature: (Lorg/lwjgl/openal/ALCcontext;)Z + * Signature: (I)Z */ JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_ALC_makeContextCurrent - (JNIEnv *, jobject, jobject); + (JNIEnv *, jobject, jint); /* * Class: org_lwjgl_openal_ALC - * Method: processContext - * Signature: (Lorg/lwjgl/openal/ALCcontext;)V + * Method: nProcessContext + * Signature: (I)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_processContext - (JNIEnv *, jobject, jobject); +JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_nProcessContext + (JNIEnv *, jobject, jint); /* * Class: org_lwjgl_openal_ALC @@ -90,50 +161,50 @@ /* * Class: org_lwjgl_openal_ALC * Method: getContextsDevice - * Signature: (Lorg/lwjgl/openal/ALCcontext;)Lorg/lwjgl/openal/ALCdevice; + * Signature: (I)Lorg/lwjgl/openal/ALCdevice; */ JNIEXPORT jobject JNICALL Java_org_lwjgl_openal_ALC_getContextsDevice - (JNIEnv *, jobject, jobject); + (JNIEnv *, jobject, jint); /* * Class: org_lwjgl_openal_ALC * Method: suspendContext - * Signature: (Lorg/lwjgl/openal/ALCcontext;)V + * Signature: (I)V */ JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_suspendContext - (JNIEnv *, jobject, jobject); + (JNIEnv *, jobject, jint); /* * Class: org_lwjgl_openal_ALC * Method: destroyContext - * Signature: (Lorg/lwjgl/openal/ALCcontext;)V + * Signature: (I)V */ JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_destroyContext - (JNIEnv *, jobject, jobject); + (JNIEnv *, jobject, jint); /* * Class: org_lwjgl_openal_ALC - * Method: getError - * Signature: (Lorg/lwjgl/openal/ALCdevice;)I + * Method: nGetError + * Signature: (I)I */ -JNIEXPORT jint JNICALL Java_org_lwjgl_openal_ALC_getError - (JNIEnv *, jobject, jobject); +JNIEXPORT jint JNICALL Java_org_lwjgl_openal_ALC_nGetError + (JNIEnv *, jobject, jint); /* * Class: org_lwjgl_openal_ALC - * Method: isExtensionPresent - * Signature: (Lorg/lwjgl/openal/ALCdevice;Ljava/lang/String;)Z + * Method: nIsExtensionPresent + * Signature: (ILjava/lang/String;)Z */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_ALC_isExtensionPresent - (JNIEnv *, jobject, jobject, jstring); +JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_ALC_nIsExtensionPresent + (JNIEnv *, jobject, jint, jstring); /* * Class: org_lwjgl_openal_ALC - * Method: getEnumValue - * Signature: (Lorg/lwjgl/openal/ALCdevice;Ljava/lang/String;)I + * Method: nGetEnumValue + * Signature: (ILjava/lang/String;)I */ -JNIEXPORT jint JNICALL Java_org_lwjgl_openal_ALC_getEnumValue - (JNIEnv *, jobject, jobject, jstring); +JNIEXPORT jint JNICALL Java_org_lwjgl_openal_ALC_nGetEnumValue + (JNIEnv *, jobject, jint, jstring); #ifdef __cplusplus } Index: org_lwjgl_openal_BaseAL.h CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_openal_BaseAL.h =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/org_lwjgl_openal_BaseAL.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- org_lwjgl_openal_BaseAL.h 22 Mar 2003 23:17:11 -0000 1.2 +++ org_lwjgl_openal_BaseAL.h 27 Apr 2003 18:37:38 -0000 1.3 @@ -1,31 +1,31 @@ -/* - * Copyright (c) 2002 Light Weight Java Game Library Project +/* + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are + * modification, are permitted provided that the following conditions are * met: - * - * * Redistributions of source code must retain the above copyright + * + * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * * Neither the name of 'Light Weight Java Game Library' nor the names of - * its contributors may be used to endorse or promote products derived + * * Neither the name of 'Lightweight Java Game Library' nor the names of + * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ @@ -43,7 +43,7 @@ /* * Class: org_lwjgl_openal_BaseAL * Method: nCreate - * Signature: ()Z + * Signature: ([Ljava/lang/String;)Z */ JNIEXPORT jboolean JNICALL Java_org_lwjgl_openal_BaseAL_nCreate (JNIEnv *, jobject, jobjectArray); Index: org_lwjgl_openal_CoreAL.h CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_openal_CoreAL.h =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/org_lwjgl_openal_CoreAL.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- org_lwjgl_openal_CoreAL.h 19 Nov 2002 16:39:57 -0000 1.8 +++ org_lwjgl_openal_CoreAL.h 27 Apr 2003 18:37:38 -0000 1.9 @@ -1,31 +1,31 @@ -/* - * Copyright (c) 2002 Light Weight Java Game Library Project +/* + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are + * modification, are permitted provided that the following conditions are * met: - * - * * Redistributions of source code must retain the above copyright + * + * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * * Neither the name of 'Light Weight Java Game Library' nor the names of - * its contributors may be used to endorse or promote products derived + * * Neither the name of 'Lightweight Java Game Library' nor the names of + * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ @@ -39,6 +39,7 @@ #ifdef __cplusplus extern "C" { #endif +/* Inaccessible static: created */ /* * Class: org_lwjgl_openal_CoreAL * Method: enable |