From ac2ad0d4c6a210049a8d041b6dd67a9959dacc00 Mon Sep 17 00:00:00 2001 From: xufuji456 Date: Tue, 6 Sep 2022 11:50:02 +0800 Subject: [PATCH] Feature: update resample --- app/src/main/cpp/audio_resample.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/src/main/cpp/audio_resample.cpp b/app/src/main/cpp/audio_resample.cpp index 2f07306..4ae066a 100644 --- a/app/src/main/cpp/audio_resample.cpp +++ b/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 \ No newline at end of file +} \ No newline at end of file