/**
 * Stop recording with start function in AudioRecord class.
 *
 * @return int
 */
int AndroidAudioRecord::stop() {
    if (mAudioRecord && ar_stop) {
	ar_stop(mAudioRecord);
	return 1;
    }
    return 0;
}
Beispiel #2
0
JNIEXPORT void JNICALL
Java_com_sun_netstorage_samqfs_mgmt_arc_Archiver_stopForFS(JNIEnv *env,
	jclass cls /*ARGSUSED*/, jobject ctx, jstring fsName) {

	jboolean isCopy;
	char *cstr;
	int res;

	PTRACE(1, "jni:Archiver_stopForFS() entry");
	cstr = GET_STR(fsName, isCopy);
	res = ar_stop(CTX, cstr);
	REL_STR(fsName, cstr, isCopy);
	if (-1 == res) {
		ThrowEx(env);
		return;
	}
	PTRACE(1, "jni:Archiver_stopForFS() done");
}