diff --git a/README.md b/README.md index cb9bd61..25349d6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # libsoundtouch +SoundTouch is an open-source audio processing library for changing the Tempo, Pitch and Playback Rates of audio streams or files: +* Tempo (time-stretch): Changes the sound to play at faster or slower speed than original, without affecting the sound pitch. +* Pitch (key) : Changes the sound pitch or key, without affecting the sound tempo or speed. +* Playback Rate : Changes both the sound tempo and pitch, as if an LP disc was played at wrong RPM rate. + diff --git a/libsoundtouch-1.7.1-arm-float_samples.patch b/libsoundtouch-1.7.1-arm-float_samples.patch new file mode 100644 index 0000000..efa53e9 --- /dev/null +++ b/libsoundtouch-1.7.1-arm-float_samples.patch @@ -0,0 +1,12 @@ +diff -Nru soundtouch.orig/include/STTypes.h soundtouch/include/STTypes.h +--- soundtouch.orig/include/STTypes.h 2012-12-28 21:56:45.000000000 +0100 ++++ soundtouch/include/STTypes.h 2013-02-03 14:07:56.840949154 +0100 +@@ -78,7 +78,7 @@ + //#undef SOUNDTOUCH_INTEGER_SAMPLES + //#undef SOUNDTOUCH_FLOAT_SAMPLES + +- #if (defined(__SOFTFP__)) ++ #if ((defined(__SOFTFP__)) && (defined(ANDROID))) + // For Android compilation: Force use of Integer samples in case that + // compilation uses soft-floating point emulation - soft-fp is way too slow + #undef SOUNDTOUCH_FLOAT_SAMPLES diff --git a/libsoundtouch-1.7.1-autoconf.patch b/libsoundtouch-1.7.1-autoconf.patch new file mode 100644 index 0000000..d02bad2 --- /dev/null +++ b/libsoundtouch-1.7.1-autoconf.patch @@ -0,0 +1,11 @@ +--- soundtouch/configure.ac.orig 2013-01-06 17:22:01.834107811 +0100 ++++ soundtouch/configure.ac 2013-01-06 17:21:11.127607077 +0100 +@@ -21,7 +21,7 @@ + + AC_INIT(SoundTouch, 1.7.0, [http://www.surina.net/soundtouch]) + AC_CONFIG_AUX_DIR(config) +-AM_CONFIG_HEADER([include/soundtouch_config.h]) ++AC_CONFIG_HEADERS([include/soundtouch_config.h]) + AM_INIT_AUTOMAKE + #AC_DISABLE_SHARED dnl This makes libtool only build static libs + AC_DISABLE_STATIC dnl This makes libtool only build shared libs diff --git a/libsoundtouch.spec b/libsoundtouch.spec new file mode 100644 index 0000000..0b52e71 --- /dev/null +++ b/libsoundtouch.spec @@ -0,0 +1,111 @@ +Name: libsoundtouch +Version: 1.8.0 +Release: 1mamba +Summary: An audio processing library for changing the Tempo, Pitch and Playback Rates of audio streams or files +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.surina.net/soundtouch/index.html +Source: http://www.surina.net/soundtouch/soundtouch-%{version}.tar.gz +Patch0: libsoundtouch-1.7.1-autoconf.patch +Patch1: libsoundtouch-1.7.1-arm-float_samples.patch +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +SoundTouch is an open-source audio processing library for changing the Tempo, Pitch and Playback Rates of audio streams or files: +* Tempo (time-stretch): Changes the sound to play at faster or slower speed than original, without affecting the sound pitch. +* Pitch (key) : Changes the sound pitch or key, without affecting the sound tempo or speed. +* Playback Rate : Changes both the sound tempo and pitch, as if an LP disc was played at wrong RPM rate. + +%package devel +Summary: Devel package for libsoundtouch +Group: Development/Libraries +Requires: %{name} == %{version} + +%description devel +SoundTouch is an open-source audio processing library for changing the Tempo, Pitch and Playback Rates of audio streams or files: +* Tempo (time-stretch): Changes the sound to play at faster or slower speed than original, without affecting the sound pitch. +* Pitch (key) : Changes the sound pitch or key, without affecting the sound tempo or speed. +* Playback Rate : Changes both the sound tempo and pitch, as if an LP disc was played at wrong RPM rate. + +This package contains the header files and the static library for development. + +%prep +%setup -q -n soundtouch +%patch0 -p1 +%patch1 -p1 +#% ifnarch %ix86 x86_64 +# cc1plus: error: unrecognized command line option "-msse2" +#sed -i "s|-msse2||" source/SoundTouch/Makefile.am source/SoundTouch/Makefile.in +#% endif + +%build +./bootstrap +#touch NEWS README AUTHORS ChangeLog +#automake --add-missing || true +%configure \ + --enable-shared + +%make \ + pkgdocdir=%{_docdir}/soundtouch \ +%ifarch arm + AM_CXXFLAGS="-O3" +%endif + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} +%makeinstall \ + pkgdocdir=%{_docdir}/soundtouch + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%{_libdir}/libSoundTouch.so.* +%doc README.html + +%files devel +%defattr(-,root,root) +%{_bindir}/soundstretch +#%{_libdir}/libSoundTouch.a +%{_libdir}/libSoundTouch.la +%{_libdir}/libSoundTouch.so +%dir %{_includedir}/soundtouch/ +%{_includedir}/soundtouch/*.h +%{_libdir}/pkgconfig/*.pc +%{_datadir}/aclocal/soundtouch.m4 +%dir %{_docdir}/soundtouch +%{_docdir}/soundtouch/* + +%changelog +* Tue Mar 18 2014 Automatic Build System 1.8.0-1mamba +- automatic version update by autodist + +* Sun Feb 03 2013 Silvan Calarco 1.7.1-2mamba +- arm: patch to keep using float types for audacity to build + +* Mon Jan 07 2013 Automatic Build System 1.7.1-1mamba +- automatic version update by autodist + +* Mon Dec 03 2012 Automatic Build System 1.6.0-1mamba +- automatic version update by autodist + +* Thu Jun 03 2010 Automatic Build System 1.5.0-1mamba +- automatic update by autodist + +* Tue Feb 17 2009 Silvan Calarco 1.4.0-1mamba +- automatic update by autodist + +* Sun Sep 30 2007 Silvan Calarco 1.3.1-2mamba +- enabled build of shared library + +* Fri May 26 2006 Silvan Calarco 1.3.1-1qilnx +- package created by autospec