From: <ma...@us...> - 2007-05-20 17:52:18
|
Revision: 2826 http://svn.sourceforge.net/java-game-lib/?rev=2826&view=rev Author: matzon Date: 2007-05-20 10:51:28 -0700 (Sun, 20 May 2007) Log Message: ----------- reworked typecasting with a dash of insanity to look more like nalBufferData - lisp anyone? Modified Paths: -------------- trunk/LWJGL/src/native/common/org_lwjgl_openal_ALC11.c Modified: trunk/LWJGL/src/native/common/org_lwjgl_openal_ALC11.c =================================================================== --- trunk/LWJGL/src/native/common/org_lwjgl_openal_ALC11.c 2007-05-20 17:47:33 UTC (rev 2825) +++ trunk/LWJGL/src/native/common/org_lwjgl_openal_ALC11.c 2007-05-20 17:51:28 UTC (rev 2826) @@ -107,7 +107,7 @@ * 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) { - ALvoid *buffer_address = ((ALbyte *)(*env)->GetDirectBufferAddress(env, buffer)) + position; + ALvoid *buffer_address = ((ALbyte *)(((char*)(*env)->GetDirectBufferAddress(env, buffer)) + position)); alcCaptureSamples((ALCdevice*) ((intptr_t)device), buffer_address, samples); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |