Feature: update resample

pull/221/head
xufuji456 2 years ago
parent 5828575bf1
commit ac2ad0d4c6
  1. 9
      app/src/main/cpp/audio_resample.cpp

@ -767,9 +767,7 @@ cleanup:
return ret;
}
#ifdef __cplusplus
extern "C" {
#endif
extern "C"
VIDEO_PLAYER_FUNC(int, audioResample, jstring srcFile, jstring dstFile, int sampleRate) {
const char *src_file = env->GetStringUTFChars(srcFile, JNI_FALSE);
const char *dst_file = env->GetStringUTFChars(dstFile, JNI_FALSE);
@ -777,7 +775,4 @@ VIDEO_PLAYER_FUNC(int, audioResample, jstring srcFile, jstring dstFile, int samp
env->ReleaseStringUTFChars(dstFile, dst_file);
env->ReleaseStringUTFChars(srcFile, src_file);
return ret;
}
#ifdef __cplusplus
}
#endif
}
Loading…
Cancel
Save