/*
* Class: org_lwjgl_openal_ALC11
* Method: nalcCaptureSamples
* Signature: (JLjava/nio/ByteBuffer;I)V
*/
static void JNICALL Java_org_lwjgl_openal_ALC11_nalcCaptureSamples(JNIEnv *env, jclass clazz, jlong device, jobject buffer, jint position, jint samples) {
ALuint *buffer_address = ((ALuint *)(*env)->GetDirectBufferAddress(env, buffer)) + position;
alcCaptureSamples((ALCdevice*) ((intptr_t)device), buffer_address, samples);
}
it's suppose to be a byte array so I'm getting JVM crashes when my buffer reaches 25%.
I also noticed that all the AL11 things dont check for errors after calls like most of the al10 and alc10 methods do. Not sure if this was intentional or not. just wanted to mention it.
thanks,
karl