Add support for libsoundtouch 1.3.1 and add an ugly workaround for the header definin...
authorSebastian Dröge <slomo@circular-chaos.org>
Sat, 26 Jan 2008 13:24:17 +0000 (13:24 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Sat, 26 Jan 2008 13:24:17 +0000 (13:24 +0000)
Original commit message from CVS:
* configure.ac:
* ext/soundtouch/gstpitch.cc:
Add support for libsoundtouch 1.3.1 and add an ugly workaround for
the header definined PACKAGE and other variables for which we need
our own values from config.h.

ChangeLog
configure.ac
ext/soundtouch/gstpitch.cc

index d791777..ceb9f16 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-01-26  Sebastian Dröge  <slomo@circular-chaos.org>
+
+       * configure.ac:
+       * ext/soundtouch/gstpitch.cc:
+       Add support for libsoundtouch 1.3.1 and add an ugly workaround for
+       the header definined PACKAGE and other variables for which we need
+       our own values from config.h.
+
 2008-01-26  Tim-Philipp Müller  <tim at centricular dot net>
 
        * configure.ac:
index 66992b0..f2477ce 100644 (file)
@@ -885,9 +885,11 @@ AG_GST_CHECK_FEATURE(SNDFILE, [sndfile plug-in], sfsrc sfsink, [
 dnl *** soundtouch ***
 translit(dnm, m, l) AM_CONDITIONAL(USE_SOUNDTOUCH, true)
 AG_GST_CHECK_FEATURE(SOUNDTOUCH, [soundtouch plug-in], soundtouch, [
-  PKG_CHECK_MODULES(SOUNDTOUCH, libSoundTouch, HAVE_SOUNDTOUCH=yes, [
-    HAVE_SOUNDTOUCH=no
-     AC_MSG_RESULT(no)])
+  PKG_CHECK_MODULES(SOUNDTOUCH, soundtouch-1.0,
+    HAVE_SOUNDTOUCH=yes, 
+    PKG_CHECK_MODULES(SOUNDTOUCH, libSoundTouch,
+      HAVE_SOUNDTOUCH=yes,
+      HAVE_SOUNDTOUCH=no))
   AC_SUBST(SOUNDTOUCH_CFLAGS)
   AC_SUBST(SOUNDTOUCH_LIBS)
   if test "x$HAVE_CXX" != "xyes"; then
index ad53f47..38c7d2d 100644 (file)
  *
  */
 
+#define FLOAT_SAMPLES 1
+#include <soundtouch/SoundTouch.h>
+/* FIXME: workaround for SoundTouch.h of version 1.3.1 defining those
+ * variables while it shouldn't. */
+#undef VERSION
+#undef PACKAGE_VERSION
+#undef PACKAGE_TARNAME
+#undef PACKAGE_STRING
+#undef PACKAGE_NAME
+#undef PACKAGE_BUGREPORT
+#undef PACKAGE
+
 #ifdef HAVE_CONFIG_H
 #  include <config.h>
 #endif
@@ -26,9 +38,6 @@
 #include "gstpitch.hh"
 #include <math.h>
 
-#define FLOAT_SAMPLES
-#include <soundtouch/SoundTouch.h>
-
 /* wtf ?
 #ifdef G_PARAM_READWRITE
 #  undef G_PARAM_READWRITE