reworked typecasting with a dash of insanity to look more like nalBufferData - lisp anyone?
This commit is contained in:
parent
79a394c749
commit
6768532934
|
@ -107,7 +107,7 @@ static void JNICALL Java_org_lwjgl_openal_ALC11_nalcCaptureStop(JNIEnv * env, jc
|
||||||
* Signature: (JLjava/nio/ByteBuffer;I)V
|
* 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) {
|
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);
|
alcCaptureSamples((ALCdevice*) ((intptr_t)device), buffer_address, samples);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue