From 70d751829576b7d6175a85eee5f2dfeb37b40519 Mon Sep 17 00:00:00 2001 From: oparviai Date: Sat, 15 Jun 2013 11:44:11 +0000 Subject: [PATCH] Bugfix in Android jni interface --- README.html | 1 + source/Android-lib/jni/soundtouch-jni.cpp | 12 ++++-------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/README.html b/README.html index 609241c..8cdb998 100644 --- a/README.html +++ b/README.html @@ -728,6 +728,7 @@ submitted bugfixes since SoundTouch v1.3.1:

  • Richard Ash
  • Stanislav Brabec
  • Christian Budde
  • +
  • Chris Bryan
  • Jacek Caban
  • Brian Cameron
  • Jason Champion
  • diff --git a/source/Android-lib/jni/soundtouch-jni.cpp b/source/Android-lib/jni/soundtouch-jni.cpp index f2a770c..8df3543 100644 --- a/source/Android-lib/jni/soundtouch-jni.cpp +++ b/source/Android-lib/jni/soundtouch-jni.cpp @@ -14,26 +14,22 @@ #include #include -//#include -//#include -//#include #include "../../../include/SoundTouch.h" -//#include "TimeShiftEffect.h" -#define LOGV(...) __android_log_print((int)ANDROID_LOG_INFO, "SOUNDTOUCH", __VA_ARGS__) -//#define LOGV(...) +#define LOGV(...) __android_log_print((int)ANDROID_LOG_INFO, "SOUNDTOUCH", __VA_ARGS__) +//#define LOGV(...) #define DLL_PUBLIC __attribute__ ((visibility ("default"))) using namespace soundtouch; -extern "C" DLL_PUBLIC jstring Java_net_surina_soundtouch_getVersionString(JNIEnv *env, jobject thiz) +extern "C" DLL_PUBLIC jstring Java_net_surina_soundtouch_SoundTouch_getVersionString(JNIEnv *env, jobject thiz) { const char *verStr; - LOGV("JNI call soundtouch.getVersionString"); + LOGV("JNI call SoundTouch.getVersionString"); // Call example SoundTouch routine verStr = SoundTouch::getVersionString();