Feature: update resample

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

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