diff --git a/include/BPMDetect.h b/include/BPMDetect.h index 9c012d5..ca498d9 100644 --- a/include/BPMDetect.h +++ b/include/BPMDetect.h @@ -60,6 +60,9 @@ #include "STTypes.h" #include "FIFOSampleBuffer.h" +namespace soundtouch +{ + /// Minimum allowed BPM rate. Used to restrict accepted result above a reasonable limit. #define MIN_BPM 29 @@ -156,4 +159,6 @@ public: float getBpm(); }; +} + #endif // _BPMDetect_H_ diff --git a/include/SoundTouch.h b/include/SoundTouch.h index f51f565..03a3c29 100644 --- a/include/SoundTouch.h +++ b/include/SoundTouch.h @@ -79,10 +79,10 @@ namespace soundtouch { /// Soundtouch library version string -#define SOUNDTOUCH_VERSION "1.3.2" +#define SOUNDTOUCH_VERSION "1.3.9" /// SoundTouch library version id -#define SOUNDTOUCH_VERSION_ID 010302 +#define SOUNDTOUCH_VERSION_ID (10309) // // Available setting IDs for the 'setSetting' & 'get_setting' functions: diff --git a/source/example/bpm/BPMDetect.cpp b/source/SoundTouch/BPMDetect.cpp similarity index 95% rename from source/example/bpm/BPMDetect.cpp rename to source/SoundTouch/BPMDetect.cpp index 972cd4c..f8e7408 100644 --- a/source/example/bpm/BPMDetect.cpp +++ b/source/SoundTouch/BPMDetect.cpp @@ -26,10 +26,10 @@ /// //////////////////////////////////////////////////////////////////////////////// // -// Last changed : $Date$ +// Last changed : $Date: 2008-12-13 20:43:55 +0200 (la, 13 joulu 2008) $ // File revision : $Revision: 4 $ // -// $Id$ +// $Id: BPMDetect.cpp 30 2008-12-13 18:43:55Z oparviai $ // //////////////////////////////////////////////////////////////////////////////// // diff --git a/source/example/bpm/PeakFinder.cpp b/source/SoundTouch/PeakFinder.cpp similarity index 94% rename from source/example/bpm/PeakFinder.cpp rename to source/SoundTouch/PeakFinder.cpp index 7d81c1a..470d4a4 100644 --- a/source/example/bpm/PeakFinder.cpp +++ b/source/SoundTouch/PeakFinder.cpp @@ -11,10 +11,10 @@ /// //////////////////////////////////////////////////////////////////////////////// // -// Last changed : $Date$ +// Last changed : $Date: 2008-12-13 20:43:55 +0200 (la, 13 joulu 2008) $ // File revision : $Revision: 4 $ // -// $Id$ +// $Id: PeakFinder.cpp 30 2008-12-13 18:43:55Z oparviai $ // //////////////////////////////////////////////////////////////////////////////// // @@ -44,6 +44,8 @@ #include "PeakFinder.h" +using namespace soundtouch; + #define max(x, y) (((x) > (y)) ? (x) : (y)) diff --git a/source/example/bpm/PeakFinder.h b/source/SoundTouch/PeakFinder.h similarity index 93% rename from source/example/bpm/PeakFinder.h rename to source/SoundTouch/PeakFinder.h index 0bbb014..d2e5a81 100644 --- a/source/example/bpm/PeakFinder.h +++ b/source/SoundTouch/PeakFinder.h @@ -9,10 +9,10 @@ /// //////////////////////////////////////////////////////////////////////////////// // -// Last changed : $Date$ +// Last changed : $Date: 2008-12-13 20:43:55 +0200 (la, 13 joulu 2008) $ // File revision : $Revision: 4 $ // -// $Id$ +// $Id: PeakFinder.h 30 2008-12-13 18:43:55Z oparviai $ // //////////////////////////////////////////////////////////////////////////////// // @@ -40,6 +40,9 @@ #ifndef _PeakFinder_H_ #define _PeakFinder_H_ +namespace soundtouch +{ + class PeakFinder { protected: @@ -85,4 +88,6 @@ public: ); }; +} + #endif // _PeakFinder_H_ diff --git a/source/SoundTouch/SoundTouch.vcproj b/source/SoundTouch/SoundTouch.vcproj index b2b1e81..c8a256e 100644 --- a/source/SoundTouch/SoundTouch.vcproj +++ b/source/SoundTouch/SoundTouch.vcproj @@ -298,6 +298,16 @@ BrowseInformation="1"/> + + + + + + + + diff --git a/source/example/SoundStretch/soundstretch.sln b/source/example/SoundStretch/soundstretch.sln index d4163da..16abe2e 100644 --- a/source/example/SoundStretch/soundstretch.sln +++ b/source/example/SoundStretch/soundstretch.sln @@ -3,13 +3,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SoundTouch", "..\..\SoundTo ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bpm", "..\bpm\bpm.vcproj", "{DA262114-26F8-4F52-BC51-111307A6C776}" - ProjectSection(ProjectDependencies) = postProject - EndProjectSection -EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "soundstretch", "soundstretch.vcproj", "{5AACDFFA-D491-44B8-A332-DA7ACCAAF2AF}" ProjectSection(ProjectDependencies) = postProject - {DA262114-26F8-4F52-BC51-111307A6C776} = {DA262114-26F8-4F52-BC51-111307A6C776} {121A2AA5-7B1F-4871-8436-FB9C837F11D4} = {121A2AA5-7B1F-4871-8436-FB9C837F11D4} EndProjectSection EndProject @@ -18,15 +13,13 @@ Global Debug = Debug Release = Release EndGlobalSection + GlobalSection(ProjectDependencies) = postSolution + EndGlobalSection GlobalSection(ProjectConfiguration) = postSolution {121A2AA5-7B1F-4871-8436-FB9C837F11D4}.Debug.ActiveCfg = Debug|Win32 {121A2AA5-7B1F-4871-8436-FB9C837F11D4}.Debug.Build.0 = Debug|Win32 {121A2AA5-7B1F-4871-8436-FB9C837F11D4}.Release.ActiveCfg = Release|Win32 {121A2AA5-7B1F-4871-8436-FB9C837F11D4}.Release.Build.0 = Release|Win32 - {DA262114-26F8-4F52-BC51-111307A6C776}.Debug.ActiveCfg = Debug|Win32 - {DA262114-26F8-4F52-BC51-111307A6C776}.Debug.Build.0 = Debug|Win32 - {DA262114-26F8-4F52-BC51-111307A6C776}.Release.ActiveCfg = Release|Win32 - {DA262114-26F8-4F52-BC51-111307A6C776}.Release.Build.0 = Release|Win32 {5AACDFFA-D491-44B8-A332-DA7ACCAAF2AF}.Debug.ActiveCfg = Debug|Win32 {5AACDFFA-D491-44B8-A332-DA7ACCAAF2AF}.Debug.Build.0 = Debug|Win32 {5AACDFFA-D491-44B8-A332-DA7ACCAAF2AF}.Release.ActiveCfg = Release|Win32 diff --git a/source/example/SoundStretch/soundstretch.vcproj b/source/example/SoundStretch/soundstretch.vcproj index b6944f7..738a314 100644 --- a/source/example/SoundStretch/soundstretch.vcproj +++ b/source/example/SoundStretch/soundstretch.vcproj @@ -39,7 +39,7 @@ Name="VCCustomBuildTool"/> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Static Library" 0x0104 - -CFG=bpm - Win32 Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "bpm.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "bpm.mak" CFG="bpm - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "bpm - Win32 Release" (based on "Win32 (x86) Static Library") -!MESSAGE "bpm - Win32 Debug" (based on "Win32 (x86) Static Library") -!MESSAGE - -# Begin Project -# PROP AllowPerConfigDependencies 0 -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "bpm - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "Release" -# PROP Intermediate_Dir "Release" -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c -# ADD CPP /nologo /W3 /GX /Zi /O2 /I "..\..\..\include" /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c -# ADD BASE RSC /l 0x40b /d "NDEBUG" -# ADD RSC /l 0x40b /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LIB32=link.exe -lib -# ADD BASE LIB32 /nologo -# ADD LIB32 /nologo -# Begin Special Build Tool -SOURCE="$(InputPath)" -PostBuild_Cmds=copy .\Release\bpm.lib ..\..\..\lib\ -# End Special Build Tool - -!ELSEIF "$(CFG)" == "bpm - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "Debug" -# PROP BASE Intermediate_Dir "Debug" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "Debug" -# PROP Intermediate_Dir "Debug" -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c -# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "..\..\..\include" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /FR /YX /FD /GZ /c -# ADD BASE RSC /l 0x40b /d "_DEBUG" -# ADD RSC /l 0x40b /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LIB32=link.exe -lib -# ADD BASE LIB32 /nologo -# ADD LIB32 /nologo /out:"Debug\bpmD.lib" -# Begin Special Build Tool -SOURCE="$(InputPath)" -PostBuild_Cmds=copy .\Debug\bpmD.lib ..\..\..\lib\ -# End Special Build Tool - -!ENDIF - -# Begin Target - -# Name "bpm - Win32 Release" -# Name "bpm - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" -# Begin Source File - -SOURCE=.\BPMDetect.cpp -# End Source File -# Begin Source File - -SOURCE=.\PeakFinder.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "h;hpp;hxx;hm;inl" -# Begin Source File - -SOURCE=..\..\..\include\BPMDetect.h -# End Source File -# Begin Source File - -SOURCE=..\..\..\include\FIFOSampleBuffer.h -# End Source File -# Begin Source File - -SOURCE=..\..\..\include\FIFOSamplePipe.h -# End Source File -# Begin Source File - -SOURCE=.\PeakFinder.h -# End Source File -# Begin Source File - -SOURCE=..\..\..\include\STTypes.h -# End Source File -# End Group -# End Target -# End Project diff --git a/source/example/bpm/bpm.dsw b/source/example/bpm/bpm.dsw deleted file mode 100644 index d90f4d8..0000000 --- a/source/example/bpm/bpm.dsw +++ /dev/null @@ -1,31 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 6.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! -# -# $Id$ - -############################################################################### - -Project: "bpm"=.\bpm.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/source/example/bpm/bpm.vcproj b/source/example/bpm/bpm.vcproj deleted file mode 100644 index d0432d1..0000000 --- a/source/example/bpm/bpm.vcproj +++ /dev/null @@ -1,192 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -