mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-21 06:14:10 +00:00
reworked typecasting with a dash of insanity to look more like nalBufferData - lisp anyone?
This commit is contained in:
parent
79a394c749
commit
6768532934
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue