Changeset 4896
- Timestamp:
- Aug 20, 2014 12:38:43 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-audiodev/android_jni_dev.c
r4435 r4896 262 262 goto on_return; 263 263 } 264 buf = (*jni_env)->GetByteArrayElements(jni_env, inputBuffer, 0);265 264 266 265 /* Start recording … … 297 296 } 298 297 298 buf = (*jni_env)->GetByteArrayElements(jni_env, inputBuffer, 0); 299 299 frame.type = PJMEDIA_FRAME_TYPE_AUDIO; 300 300 frame.size = size; … … 304 304 305 305 status = (*stream->rec_cb)(stream->user_data, &frame); 306 (*jni_env)->ReleaseByteArrayElements(jni_env, inputBuffer, buf, 307 JNI_ABORT); 306 308 307 309 stream->rec_timestamp.u64 += stream->param.samples_per_frame / … … 309 311 } 310 312 311 (*jni_env)->ReleaseByteArrayElements(jni_env, inputBuffer, buf, 0);312 313 (*jni_env)->DeleteLocalRef(jni_env, inputBuffer); 313 314 … … 391 392 pj_bzero(frame.buf, frame.size); 392 393 394 (*jni_env)->ReleaseByteArrayElements(jni_env, outputBuffer, buf, 395 JNI_COMMIT); 396 393 397 /* Write to the device output. */ 394 398 bytesWritten = (*jni_env)->CallIntMethod(jni_env, stream->track,
Note: See TracChangeset
for help on using the changeset viewer.