基于soundTouch做点东西,C++不熟悉,请各位给个demo或者相关的资料也可 [email protected]  谢谢!

解决方案 »

  1.   

    Android 的 AudioTrack本身可以改变音速,高低音等等。这些不够用么?
    soundTouch貌似没有现成的Android整合,你得自己从ndk开始编译。
      

  2.   

    不够
    希望有人有ndk例子可以参考看看
      

  3.   

    For Android compilation, download Android NDK and prepare SoundTouch library as follows:Switch off exception handling as Android does not support C++ exceptions. That's easiest done by taking latest source codes and defining ST_NO_EXCEPTION_HANDLING either as -D compiler flag, or #define that in STTypes.h fileAdd *.cpp files from SoundTouch library to your Android.mk fileAdd copyright notice about usage of SoundTouch library into your application about information to comply with the licenseThat's it, SoundTouch compiles and is ready for use.Android.mk文件:include $(CLEAR_VARS)
    LOCAL_PATH:= $(call my-dir)LOCAL_CPP_FEATURES += -fno-exceptionsLOCAL_SRC_FILES := \
         SoundTouch/AAFilter.cpp \
         SoundTouch/BPMDetect.cpp \
         SoundTouch/cpu_detect_x86.cpp\
          SoundTouch/FIFOSampleBuffer.cpp \
          SoundTouch/FIRFilter.cpp \
          SoundTouch/mmx_optimized.cpp \
          SoundTouch/PeakFinder.cpp \
          SoundTouch/RateTransposer.cpp \
          SoundTouch/SoundTouch.cpp \
          SoundTouch/sse_optimized.cpp \
          SoundTouch/TDStretch.cpp LOCAL_MODULE := libSoundTouchLOCAL_C_INCLUDES := include/BPMDetect.h include/FIFOSampleBuffer.h include/FIFOSamplePipe.h include/SoundTouch.h include/STTypes.hinclude $(BUILD_SHARED_LIBRARY)