search for: jni_false

Displaying 1 result from an estimated 1 matches for "jni_false".

2008 May 29
0
Again, teach me speex AEC please!
...p;pCodec->bits); speex_decoder_destroy(pCodec->pSt); free(pCodec); } /** * Encode a byte array. */ JNIEXPORT jint JNICALL Java_com_peterhi_Speex_encode(JNIEnv* env, jclass c, jint p, jbyteArray buf1, jbyteArray buf2) { jbyte* bytes1 = (*env)->GetByteArrayElements(env, buf1, JNI_FALSE); jbyte* bytes2 = (*env)->GetByteArrayElements(env, buf2, JNI_FALSE); int len1 = (*env)->GetArrayLength(env, buf1); int len2 = (*env)->GetArrayLength(env, buf2); jint ret = 0; Codec* pCodec = (Codec* )p; if (pCodec->type != TYPE_ENCODE) { return re...