Lines Matching refs:jint
146 static jint
148 jobject jaa, jint sampleRateInHertz, jint channelMask,
150 jint audioFormat, jint buffSizeInBytes, jintArray jSession)
158 return (jint) AUDIO_JAVA_ERROR;
163 return (jint) AUDIORECORD_ERROR_SETUP_INVALIDCHANNELMASK;
171 return (jint) AUDIORECORD_ERROR_SETUP_INVALIDFORMAT;
178 return (jint) AUDIORECORD_ERROR_SETUP_ZEROFRAMECOUNT;
186 return (jint) AUDIORECORD_ERROR_SETUP_NATIVEINITFAILED;
191 return (jint) AUDIO_JAVA_ERROR;
194 jint* nSession = (jint *) env->GetPrimitiveArrayCritical(jSession, NULL);
197 return (jint) AUDIO_JAVA_ERROR;
250 nSession = (jint *) env->GetPrimitiveArrayCritical(jSession, NULL);
272 return (jint) AUDIO_JAVA_SUCCESS;
281 return (jint) AUDIORECORD_ERROR_SETUP_NATIVEINITFAILED;
287 static jint
288 android_media_AudioRecord_start(JNIEnv *env, jobject thiz, jint event, jint triggerSession)
293 return (jint) AUDIO_JAVA_ERROR;
360 static jint android_media_AudioRecord_readInByteArray(JNIEnv *env, jobject thiz,
362 jint offsetInBytes, jint sizeInBytes) {
391 sizeInBytes > (jint)recorderBuffSize ?
392 (jint)recorderBuffSize : sizeInBytes );
396 readSize = (jint)AUDIO_JAVA_INVALID_OPERATION;
398 return (jint) readSize;
402 static jint android_media_AudioRecord_readInShortArray(JNIEnv *env, jobject thiz,
404 jint offsetInShorts, jint sizeInShorts) {
441 readSize = (jint)AUDIO_JAVA_INVALID_OPERATION;
445 return (jint) readSize;
449 static jint android_media_AudioRecord_readInDirectBuffer(JNIEnv *env, jobject thiz,
450 jobject jBuffer, jint sizeInBytes) {
474 readSize = (jint)AUDIO_JAVA_INVALID_OPERATION;
476 return (jint)readSize;
481 static jint android_media_AudioRecord_set_marker_pos(JNIEnv *env, jobject thiz,
482 jint markerPos) {
488 return (jint)AUDIO_JAVA_ERROR;
495 static jint android_media_AudioRecord_get_marker_pos(JNIEnv *env, jobject thiz) {
503 return (jint)AUDIO_JAVA_ERROR;
506 return (jint)markerPos;
511 static jint android_media_AudioRecord_set_pos_update_period(JNIEnv *env, jobject thiz,
512 jint period) {
519 return (jint)AUDIO_JAVA_ERROR;
526 static jint android_media_AudioRecord_get_pos_update_period(JNIEnv *env, jobject thiz) {
534 return (jint)AUDIO_JAVA_ERROR;
537 return (jint)period;
545 static jint android_media_AudioRecord_get_min_buff_size(JNIEnv *env, jobject thiz,
546 jint sampleRateInHertz, jint channelCount, jint audioFormat) {