search for: setbytearrayregion

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

2008 May 29
0
Again, teach me speex AEC please!
...to use AEC to cancel? speex_preprocess_run(pCodec->pPre, (spx_int16_t* )bytes1); speex_bits_reset(&pCodec->bits); speex_encode_int(pCodec->pSt, (spx_int16_t* )bytes1, &pCodec->bits); ret = speex_bits_write(&pCodec->bits, bytes2, len2); (*env)->SetByteArrayRegion(env, buf1, 0, len1, bytes1); (*env)->SetByteArrayRegion(env, buf2, 0, len2, bytes2); (*env)->ReleaseByteArrayElements(env, buf1, bytes1, 0); (*env)->ReleaseByteArrayElements(env, buf2, bytes2, 0); return ret; } /** * Decode a byte array. */ JNIEXPORT void JNICALL Java_c...