示例#1
0
void Java_com_ago_guitartrainer_PitchDetector_DoFFT(
            JNIEnv* env,
	        jobject thiz,
            jdoubleArray data,
            jint size) {
  jdouble *source_data = env->GetDoubleArrayElements(data, JNI_FALSE);
  DoFFTInternal(source_data, size);
}
示例#2
0
void Java_com_example_hellojni_PitchDetector_DoFFT(
            JNIEnv* env,
                jobject thiz,
            jdoubleArray data,
            jint size) {
  jdouble *source_data = env->GetDoubleArrayElements(data, JNI_FALSE);
  DoFFTInternal(source_data, size);
  env->ReleaseDoubleArrayElements(data, source_data, 0);
}
示例#3
0
void Java_com_audiologic_Fourierwin_PitchDetect_fprocess(
            JNIEnv* env,
	        jobject thiz,
            jdoubleArray data,
            jint size) {
  jdouble *source_data = env->GetDoubleArrayElements(data, JNI_FALSE);
  DoFFTInternal(source_data, size);
  env->ReleaseDoubleArrayElements(data, source_data, 0);
}