Android: Fixed two warnings about unused variables.

Philipp Wiesemann 2016-09-21 23:06:26 +02:00
parent f0fca2880f
commit 85588ea040
1 changed files with 0 additions and 2 deletions

View File

@ -718,10 +718,8 @@ void Android_JNI_FlushCapturedAudio(void)
} }
#else #else
if (captureBuffer16Bit) { if (captureBuffer16Bit) {
const jint len = (*env)->GetArrayLength(env, (jshortArray)captureBuffer);
(*env)->CallStaticIntMethod(env, mActivityClass, midCaptureReadShortBuffer, (jshortArray)captureBuffer, JNI_FALSE); (*env)->CallStaticIntMethod(env, mActivityClass, midCaptureReadShortBuffer, (jshortArray)captureBuffer, JNI_FALSE);
} else { } else {
const jint len = (*env)->GetArrayLength(env, (jbyteArray)captureBuffer);
(*env)->CallStaticIntMethod(env, mActivityClass, midCaptureReadByteBuffer, (jbyteArray)captureBuffer, JNI_FALSE); (*env)->CallStaticIntMethod(env, mActivityClass, midCaptureReadByteBuffer, (jbyteArray)captureBuffer, JNI_FALSE);
} }
#endif #endif