From fc770dc67eec0ec409b1ffb1187020f2120c43fb Mon Sep 17 00:00:00 2001 From: Brian Matzon Date: Sun, 20 May 2007 17:44:59 +0000 Subject: [PATCH] fixed issues with typecasting of buffer type --- src/native/common/org_lwjgl_openal_ALC11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }