diff --git a/src/native/common/org_lwjgl_openal_ALC11.c b/src/native/common/org_lwjgl_openal_ALC11.c index 0f9e01d1..cf08842c 100644 --- a/src/native/common/org_lwjgl_openal_ALC11.c +++ b/src/native/common/org_lwjgl_openal_ALC11.c @@ -107,7 +107,7 @@ static void JNICALL Java_org_lwjgl_openal_ALC11_nalcCaptureStop(JNIEnv * env, jc * 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; + ALvoid *buffer_address = ((ALbyte *)(*env)->GetDirectBufferAddress(env, buffer)) + position; alcCaptureSamples((ALCdevice*) ((intptr_t)device), buffer_address, samples); }