mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-01-27 10:54:13 +01:00
fixed issues with typecasting of buffer type
This commit is contained in:
parent
fc845268e6
commit
fc770dc67e
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue