Converted ALC pointers from int to long

This commit is contained in:
Elias Naur 2005-04-12 10:30:05 +00:00
parent 815ce87e2e
commit f5cf0ef2a4
4 changed files with 49 additions and 49 deletions

View File

@ -167,7 +167,7 @@ public final class ALC {
return nalcGetString(AL.device.device, pname); 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. * The application can query ALC for information using an integer query function.
@ -194,7 +194,7 @@ public final class ALC {
nalcGetIntegerv(AL.device.device, pname, integerdata.remaining(), integerdata, integerdata.position()); 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 * The <code>alcOpenDevice</code> function allows the application (i.e. the client program) to
@ -219,7 +219,7 @@ public final class ALC {
* *
* @param device address of native device to close * @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 * A context is created using <code>alcCreateContext</code>. The device parameter has to be a valid
@ -236,7 +236,7 @@ public final class ALC {
* @param attrList Buffer to read attributes from * @param attrList Buffer to read attributes from
* @return New context, or null if creation failed * @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 * To make a Context current with respect to AL Operation (state changes by issueing
@ -252,7 +252,7 @@ public final class ALC {
* @param context address of context to make current * @param context address of context to make current
* @return true if successfull, false if not * @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 * The current context is the only context accessible to state changes by AL commands
@ -269,7 +269,7 @@ public final class ALC {
nalcProcessContext(AL.context.context); 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 * The application can query for, and obtain an handle to, the current context for the
@ -285,7 +285,7 @@ public final class ALC {
* @param context address of context to get device for * @param context address of context to get device for
* @param ALCdevice associated with context * @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 * The application can suspend any context from processing (including the current
@ -302,7 +302,7 @@ public final class ALC {
public static void alcSuspendContext() { public static void alcSuspendContext() {
nalcSuspendContext(AL.context.context); 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 * The correct way to destroy a context is to first release it using <code>alcMakeCurrent</code> and
@ -310,7 +310,7 @@ public final class ALC {
* *
* @param context address of context to Destroy * @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 * ALC uses the same conventions and mechanisms as AL for error handling. In
@ -331,7 +331,7 @@ public final class ALC {
return nalcGetError(AL.device.device); 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 * Verify that a given extension is available for the current context and the device it
@ -346,7 +346,7 @@ public final class ALC {
return nalcIsExtensionPresent(AL.device.device, extName); 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 * Enumeration/token values are device independend, but tokens defined for
@ -362,5 +362,5 @@ public final class ALC {
return nalcGetEnumValue(AL.device.device, enumName); return nalcGetEnumValue(AL.device.device, enumName);
} }
native static int nalcGetEnumValue(int device, String enumName); native static int nalcGetEnumValue(long device, String enumName);
} }

View File

@ -46,14 +46,14 @@ import org.lwjgl.BufferUtils;
final class ALCcontext { final class ALCcontext {
/** address of actual context */ /** address of actual context */
final int context; final long context;
/** /**
* Creates a new instance of ALCcontext * Creates a new instance of ALCcontext
* *
* @param context address of actual context * @param context address of actual context
*/ */
ALCcontext(int context) { ALCcontext(long context) {
this.context = context; this.context = context;
} }

View File

@ -42,14 +42,14 @@ package org.lwjgl.openal;
final class ALCdevice { final class ALCdevice {
/** address of actual device */ /** address of actual device */
final int device; final long device;
/** /**
* Creates a new instance of ALCdevice * Creates a new instance of ALCdevice
* *
* @param device address of actual device * @param device address of actual device
*/ */
ALCdevice(int device) { ALCdevice(long device) {
this.device = device; this.device = device;
} }
} }

View File

@ -81,7 +81,7 @@ static alcGetEnumValuePROC alcGetEnumValue;
* C Specification: * C Specification:
* ALubyte * alcGetString(ALCdevice *device, ALenum token); * ALubyte * alcGetString(ALCdevice *device, ALenum token);
*/ */
static jstring JNICALL Java_org_lwjgl_openal_ALC_nalcGetString (JNIEnv *env, jclass clazz, jint deviceaddress, jint token) { static jstring JNICALL Java_org_lwjgl_openal_ALC_nalcGetString (JNIEnv *env, jclass clazz, jlong deviceaddress, jint token) {
const char* alcString = (const char*) alcGetString((ALCdevice*) deviceaddress, (ALenum) token); const char* alcString = (const char*) alcGetString((ALCdevice*) deviceaddress, (ALenum) token);
jstring string; jstring string;
@ -101,7 +101,7 @@ static jstring JNICALL Java_org_lwjgl_openal_ALC_nalcGetString (JNIEnv *env, jcl
* C Specification: * C Specification:
* ALvoid alcGetIntegerv(ALCdevice *device, ALenum token, ALsizei size, ALint *dest); * ALvoid alcGetIntegerv(ALCdevice *device, ALenum token, ALsizei size, ALint *dest);
*/ */
static void JNICALL Java_org_lwjgl_openal_ALC_nalcGetIntegerv (JNIEnv *env, jclass clazz, jint deviceaddress, jint token, jint size, jobject dest, jint offset) { static void JNICALL Java_org_lwjgl_openal_ALC_nalcGetIntegerv (JNIEnv *env, jclass clazz, jlong deviceaddress, jint token, jint size, jobject dest, jint offset) {
ALint* address = NULL; ALint* address = NULL;
if (dest != NULL) { if (dest != NULL) {
address = offset + (ALint*) (*env)->GetDirectBufferAddress(env, dest); address = offset + (ALint*) (*env)->GetDirectBufferAddress(env, dest);
@ -143,10 +143,10 @@ static jobject JNICALL Java_org_lwjgl_openal_ALC_alcOpenDevice (JNIEnv *env, jcl
/* find class and constructor */ /* find class and constructor */
alcDevice_class = (*env)->FindClass(env, "org/lwjgl/openal/ALCdevice"); alcDevice_class = (*env)->FindClass(env, "org/lwjgl/openal/ALCdevice");
alcDevice_method = (*env)->GetMethodID(env, alcDevice_class, "<init>", "(I)V"); alcDevice_method = (*env)->GetMethodID(env, alcDevice_class, "<init>", "(J)V");
/* create instance */ /* create instance */
alcDevice_object = (*env)->NewObject(env, alcDevice_class, alcDevice_method, (int) device); alcDevice_object = (*env)->NewObject(env, alcDevice_class, alcDevice_method, (jlong) device);
/* clean up */ /* clean up */
if (tokenstring != NULL) if (tokenstring != NULL)
@ -161,7 +161,7 @@ static jobject JNICALL Java_org_lwjgl_openal_ALC_alcOpenDevice (JNIEnv *env, jcl
* C Specification: * C Specification:
* void alcCloseDevice( ALCdevice *dev ); * void alcCloseDevice( ALCdevice *dev );
*/ */
static void JNICALL Java_org_lwjgl_openal_ALC_alcCloseDevice (JNIEnv *env, jclass clazz, jint deviceaddress) { static void JNICALL Java_org_lwjgl_openal_ALC_alcCloseDevice (JNIEnv *env, jclass clazz, jlong deviceaddress) {
alcCloseDevice((ALCdevice*) deviceaddress); alcCloseDevice((ALCdevice*) deviceaddress);
} }
@ -171,7 +171,7 @@ static void JNICALL Java_org_lwjgl_openal_ALC_alcCloseDevice (JNIEnv *env, jclas
* C Specification: * C Specification:
* ALCcontext* alcCreateContext( ALCdevice *dev, ALint* attrlist ); * ALCcontext* alcCreateContext( ALCdevice *dev, ALint* attrlist );
*/ */
static jobject JNICALL Java_org_lwjgl_openal_ALC_alcCreateContext (JNIEnv *env, jclass clazz, jint deviceaddress, jobject attrlist) { static jobject JNICALL Java_org_lwjgl_openal_ALC_alcCreateContext (JNIEnv *env, jclass clazz, jlong deviceaddress, jobject attrlist) {
ALint* address = NULL; ALint* address = NULL;
ALCcontext* context; ALCcontext* context;
/* get ready to create ALCcontext instance */ /* get ready to create ALCcontext instance */
@ -191,10 +191,10 @@ static jobject JNICALL Java_org_lwjgl_openal_ALC_alcCreateContext (JNIEnv *env,
/* find class and constructor */ /* find class and constructor */
alcContext_class = (*env)->FindClass(env, "org/lwjgl/openal/ALCcontext"); alcContext_class = (*env)->FindClass(env, "org/lwjgl/openal/ALCcontext");
alcContext_method = (*env)->GetMethodID(env, alcContext_class, "<init>", "(I)V"); alcContext_method = (*env)->GetMethodID(env, alcContext_class, "<init>", "(J)V");
/* create instance */ /* create instance */
alcContext_object = (*env)->NewObject(env, alcContext_class, alcContext_method, (int) context); alcContext_object = (*env)->NewObject(env, alcContext_class, alcContext_method, (jlong)context);
CHECK_ALC_ERROR CHECK_ALC_ERROR
return alcContext_object; return alcContext_object;
@ -206,7 +206,7 @@ static jobject JNICALL Java_org_lwjgl_openal_ALC_alcCreateContext (JNIEnv *env,
* C Specification: * C Specification:
* ALCboolean alcMakeContextCurrent(ALCcontext *context); * ALCboolean alcMakeContextCurrent(ALCcontext *context);
*/ */
static jint JNICALL Java_org_lwjgl_openal_ALC_alcMakeContextCurrent (JNIEnv *env, jclass clazz, jint contextaddress) { static jint JNICALL Java_org_lwjgl_openal_ALC_alcMakeContextCurrent (JNIEnv *env, jclass clazz, jlong contextaddress) {
ALCcontext* context = (ALCcontext*) contextaddress; ALCcontext* context = (ALCcontext*) contextaddress;
ALCenum result; ALCenum result;
if(context == NULL) { if(context == NULL) {
@ -223,7 +223,7 @@ static jint JNICALL Java_org_lwjgl_openal_ALC_alcMakeContextCurrent (JNIEnv *env
* C Specification: * C Specification:
* void alcProcessContext(ALCcontext *context); * void alcProcessContext(ALCcontext *context);
*/ */
static void JNICALL Java_org_lwjgl_openal_ALC_nalcProcessContext (JNIEnv *env, jclass clazz, jint contextaddress) { static void JNICALL Java_org_lwjgl_openal_ALC_nalcProcessContext (JNIEnv *env, jclass clazz, jlong contextaddress) {
alcProcessContext((ALCcontext*) contextaddress); alcProcessContext((ALCcontext*) contextaddress);
} }
@ -246,10 +246,10 @@ static jobject JNICALL Java_org_lwjgl_openal_ALC_alcGetCurrentContext (JNIEnv *e
} }
/* find class and constructor */ /* find class and constructor */
alcContext_class = (*env)->FindClass(env, "org/lwjgl/openal/ALCcontext"); alcContext_class = (*env)->FindClass(env, "org/lwjgl/openal/ALCcontext");
alcContext_method = (*env)->GetMethodID(env, alcContext_class, "<init>", "(I)V"); alcContext_method = (*env)->GetMethodID(env, alcContext_class, "<init>", "(J)V");
/* create instance */ /* create instance */
alcContext_object = (*env)->NewObject(env, alcContext_class, alcContext_method, (int) context); alcContext_object = (*env)->NewObject(env, alcContext_class, alcContext_method, (jlong) context);
return alcContext_object; return alcContext_object;
} }
@ -260,7 +260,7 @@ static jobject JNICALL Java_org_lwjgl_openal_ALC_alcGetCurrentContext (JNIEnv *e
* C Specification: * C Specification:
* ALCdevice* alcGetContextsDevice(ALCcontext *context); * ALCdevice* alcGetContextsDevice(ALCcontext *context);
*/ */
static jobject JNICALL Java_org_lwjgl_openal_ALC_alcGetContextsDevice (JNIEnv *env, jclass clazz, jint contextaddress) { static jobject JNICALL Java_org_lwjgl_openal_ALC_alcGetContextsDevice (JNIEnv *env, jclass clazz, jlong contextaddress) {
ALCdevice* device = alcGetContextsDevice((ALCcontext*) contextaddress); ALCdevice* device = alcGetContextsDevice((ALCcontext*) contextaddress);
/* get ready to create ALCdevice instance */ /* get ready to create ALCdevice instance */
@ -274,10 +274,10 @@ static jobject JNICALL Java_org_lwjgl_openal_ALC_alcGetContextsDevice (JNIEnv *e
/* find class and constructor */ /* find class and constructor */
alcDevice_class = (*env)->FindClass(env, "org/lwjgl/openal/ALCdevice"); alcDevice_class = (*env)->FindClass(env, "org/lwjgl/openal/ALCdevice");
alcDevice_method = (*env)->GetMethodID(env, alcDevice_class, "<init>", "(I)V"); alcDevice_method = (*env)->GetMethodID(env, alcDevice_class, "<init>", "(J)V");
/* create instance */ /* create instance */
alcDevice_object = (*env)->NewObject(env, alcDevice_class, alcDevice_method, (int) device); alcDevice_object = (*env)->NewObject(env, alcDevice_class, alcDevice_method, (jlong) device);
return alcDevice_object; return alcDevice_object;
} }
@ -288,7 +288,7 @@ static jobject JNICALL Java_org_lwjgl_openal_ALC_alcGetContextsDevice (JNIEnv *e
* C Specification: * C Specification:
* void alcSuspendContext(ALCcontext *context); * void alcSuspendContext(ALCcontext *context);
*/ */
static void JNICALL Java_org_lwjgl_openal_ALC_nalcSuspendContext (JNIEnv *env, jclass clazz, jint contextaddress) { static void JNICALL Java_org_lwjgl_openal_ALC_nalcSuspendContext (JNIEnv *env, jclass clazz, jlong contextaddress) {
alcSuspendContext((ALCcontext*) contextaddress); alcSuspendContext((ALCcontext*) contextaddress);
} }
@ -298,7 +298,7 @@ static void JNICALL Java_org_lwjgl_openal_ALC_nalcSuspendContext (JNIEnv *env, j
* C Specification: * C Specification:
* void alcDestroyContext(ALCcontext *context); * void alcDestroyContext(ALCcontext *context);
*/ */
static void JNICALL Java_org_lwjgl_openal_ALC_alcDestroyContext (JNIEnv *env, jclass clazz, jint contextaddress) { static void JNICALL Java_org_lwjgl_openal_ALC_alcDestroyContext (JNIEnv *env, jclass clazz, jlong contextaddress) {
alcDestroyContext((ALCcontext*) contextaddress); alcDestroyContext((ALCcontext*) contextaddress);
} }
@ -308,7 +308,7 @@ static void JNICALL Java_org_lwjgl_openal_ALC_alcDestroyContext (JNIEnv *env, jc
* C Specification: * C Specification:
* ALCenum alcGetError(ALCdevice *device); * ALCenum alcGetError(ALCdevice *device);
*/ */
static jint JNICALL Java_org_lwjgl_openal_ALC_nalcGetError (JNIEnv *env, jclass clazz, jint deviceaddress) { static jint JNICALL Java_org_lwjgl_openal_ALC_nalcGetError (JNIEnv *env, jclass clazz, jlong deviceaddress) {
jint result = alcGetError((ALCdevice*) deviceaddress); jint result = alcGetError((ALCdevice*) deviceaddress);
CHECK_ALC_ERROR CHECK_ALC_ERROR
return result; return result;
@ -320,7 +320,7 @@ static jint JNICALL Java_org_lwjgl_openal_ALC_nalcGetError (JNIEnv *env, jclass
* C Specification: * C Specification:
* ALboolean alcIsExtensionPresent(ALCdevice *device, ALubyte *extName); * ALboolean alcIsExtensionPresent(ALCdevice *device, ALubyte *extName);
*/ */
static jboolean JNICALL Java_org_lwjgl_openal_ALC_nalcIsExtensionPresent (JNIEnv *env, jclass clazz, jint deviceaddress, jstring extName) { static jboolean JNICALL Java_org_lwjgl_openal_ALC_nalcIsExtensionPresent (JNIEnv *env, jclass clazz, jlong deviceaddress, jstring extName) {
/* get extension */ /* get extension */
ALubyte* functionname = (ALubyte*) GetStringNativeChars(env, extName); ALubyte* functionname = (ALubyte*) GetStringNativeChars(env, extName);
@ -338,7 +338,7 @@ static jboolean JNICALL Java_org_lwjgl_openal_ALC_nalcIsExtensionPresent (JNIEnv
* C Specification: * C Specification:
* ALenum alcGetEnumValue(ALCdevice *device, ALubyte *enumName); * ALenum alcGetEnumValue(ALCdevice *device, ALubyte *enumName);
*/ */
static jint JNICALL Java_org_lwjgl_openal_ALC_nalcGetEnumValue (JNIEnv *env, jclass clazz, jint deviceaddress, jstring enumName) { static jint JNICALL Java_org_lwjgl_openal_ALC_nalcGetEnumValue (JNIEnv *env, jclass clazz, jlong deviceaddress, jstring enumName) {
/* get extension */ /* get extension */
ALubyte* enumerationname = (ALubyte*) GetStringNativeChars(env, enumName); ALubyte* enumerationname = (ALubyte*) GetStringNativeChars(env, enumName);
@ -360,20 +360,20 @@ extern "C" {
#endif #endif
JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_initNativeStubs(JNIEnv *env, jclass clazz) { JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_initNativeStubs(JNIEnv *env, jclass clazz) {
JavaMethodAndExtFunction functions[] = { JavaMethodAndExtFunction functions[] = {
{"nalcGetString", "(II)Ljava/lang/String;", (void*)&Java_org_lwjgl_openal_ALC_nalcGetString, "alcGetString", (void*)&alcGetString}, {"nalcGetString", "(JI)Ljava/lang/String;", (void*)&Java_org_lwjgl_openal_ALC_nalcGetString, "alcGetString", (void*)&alcGetString},
{"nalcGetIntegerv", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_openal_ALC_nalcGetIntegerv, "alcGetIntegerv", (void*)&alcGetIntegerv}, {"nalcGetIntegerv", "(JIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_openal_ALC_nalcGetIntegerv, "alcGetIntegerv", (void*)&alcGetIntegerv},
{"alcOpenDevice", "(Ljava/lang/String;)Lorg/lwjgl/openal/ALCdevice;", (void*)&Java_org_lwjgl_openal_ALC_alcOpenDevice, "alcOpenDevice", (void*)&alcOpenDevice}, {"alcOpenDevice", "(Ljava/lang/String;)Lorg/lwjgl/openal/ALCdevice;", (void*)&Java_org_lwjgl_openal_ALC_alcOpenDevice, "alcOpenDevice", (void*)&alcOpenDevice},
{"alcCloseDevice", "(I)V", (void*)&Java_org_lwjgl_openal_ALC_alcCloseDevice, "alcCloseDevice", (void*)&alcCloseDevice}, {"alcCloseDevice", "(J)V", (void*)&Java_org_lwjgl_openal_ALC_alcCloseDevice, "alcCloseDevice", (void*)&alcCloseDevice},
{"alcCreateContext", "(ILjava/nio/IntBuffer;)Lorg/lwjgl/openal/ALCcontext;", (void*)&Java_org_lwjgl_openal_ALC_alcCreateContext, "alcCreateContext", (void*)&alcCreateContext}, {"alcCreateContext", "(JLjava/nio/IntBuffer;)Lorg/lwjgl/openal/ALCcontext;", (void*)&Java_org_lwjgl_openal_ALC_alcCreateContext, "alcCreateContext", (void*)&alcCreateContext},
{"alcMakeContextCurrent", "(I)I", (void*)&Java_org_lwjgl_openal_ALC_alcMakeContextCurrent, "alcMakeContextCurrent", (void*)&alcMakeContextCurrent}, {"alcMakeContextCurrent", "(J)I", (void*)&Java_org_lwjgl_openal_ALC_alcMakeContextCurrent, "alcMakeContextCurrent", (void*)&alcMakeContextCurrent},
{"nalcProcessContext", "(I)V", (void*)&Java_org_lwjgl_openal_ALC_nalcProcessContext, "alcProcessContext", (void*)&alcProcessContext}, {"nalcProcessContext", "(J)V", (void*)&Java_org_lwjgl_openal_ALC_nalcProcessContext, "alcProcessContext", (void*)&alcProcessContext},
{"alcGetCurrentContext", "()Lorg/lwjgl/openal/ALCcontext;", (void*)&Java_org_lwjgl_openal_ALC_alcGetCurrentContext, "alcGetCurrentContext", (void*)&alcGetCurrentContext}, {"alcGetCurrentContext", "()Lorg/lwjgl/openal/ALCcontext;", (void*)&Java_org_lwjgl_openal_ALC_alcGetCurrentContext, "alcGetCurrentContext", (void*)&alcGetCurrentContext},
{"alcGetContextsDevice", "(I)Lorg/lwjgl/openal/ALCdevice;", (void*)&Java_org_lwjgl_openal_ALC_alcGetContextsDevice, "alcGetContextsDevice", (void*)&alcGetContextsDevice}, {"alcGetContextsDevice", "(J)Lorg/lwjgl/openal/ALCdevice;", (void*)&Java_org_lwjgl_openal_ALC_alcGetContextsDevice, "alcGetContextsDevice", (void*)&alcGetContextsDevice},
{"nalcSuspendContext", "(I)V", (void*)&Java_org_lwjgl_openal_ALC_nalcSuspendContext, "alcSuspendContext", (void*)&alcSuspendContext}, {"nalcSuspendContext", "(J)V", (void*)&Java_org_lwjgl_openal_ALC_nalcSuspendContext, "alcSuspendContext", (void*)&alcSuspendContext},
{"alcDestroyContext", "(I)V", (void*)&Java_org_lwjgl_openal_ALC_alcDestroyContext, "alcDestroyContext", (void*)&alcDestroyContext}, {"alcDestroyContext", "(J)V", (void*)&Java_org_lwjgl_openal_ALC_alcDestroyContext, "alcDestroyContext", (void*)&alcDestroyContext},
{"nalcGetError", "(I)I", (void*)&Java_org_lwjgl_openal_ALC_nalcGetError, "alcGetError", (void*)&alcGetError}, {"nalcGetError", "(J)I", (void*)&Java_org_lwjgl_openal_ALC_nalcGetError, "alcGetError", (void*)&alcGetError},
{"nalcIsExtensionPresent", "(ILjava/lang/String;)Z", (void*)&Java_org_lwjgl_openal_ALC_nalcIsExtensionPresent, "alcIsExtensionPresent", (void*)&alcIsExtensionPresent}, {"nalcIsExtensionPresent", "(JLjava/lang/String;)Z", (void*)&Java_org_lwjgl_openal_ALC_nalcIsExtensionPresent, "alcIsExtensionPresent", (void*)&alcIsExtensionPresent},
{"nalcGetEnumValue", "(ILjava/lang/String;)I", (void*)&Java_org_lwjgl_openal_ALC_nalcGetEnumValue, "alcGetEnumValue", (void*)&alcGetEnumValue} {"nalcGetEnumValue", "(JLjava/lang/String;)I", (void*)&Java_org_lwjgl_openal_ALC_nalcGetEnumValue, "alcGetEnumValue", (void*)&alcGetEnumValue}
}; };
int num_functions = NUMFUNCTIONS(functions); int num_functions = NUMFUNCTIONS(functions);
extal_InitializeClass(env, clazz, num_functions, functions); extal_InitializeClass(env, clazz, num_functions, functions);