diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2008-01-26 13:24:17 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2008-01-26 13:24:17 +0000 |
commit | 23a2e7d7adad5ce71446e83134f0c84aba5393e8 (patch) | |
tree | 9b1be3e4ccf12c65795178cd1065130a17825628 /ext/soundtouch | |
parent | 3a5db6a93221b15b23ae593d55f3cdc7e4f2804a (diff) | |
download | gst-plugins-bad-23a2e7d7adad5ce71446e83134f0c84aba5393e8.tar.gz gst-plugins-bad-23a2e7d7adad5ce71446e83134f0c84aba5393e8.tar.bz2 gst-plugins-bad-23a2e7d7adad5ce71446e83134f0c84aba5393e8.zip |
Add support for libsoundtouch 1.3.1 and add an ugly workaround for the header definined PACKAGE and other variables f...
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.
Diffstat (limited to 'ext/soundtouch')
-rw-r--r-- | ext/soundtouch/gstpitch.cc | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/ext/soundtouch/gstpitch.cc b/ext/soundtouch/gstpitch.cc index ad53f477..38c7d2d3 100644 --- a/ext/soundtouch/gstpitch.cc +++ b/ext/soundtouch/gstpitch.cc @@ -17,6 +17,18 @@ * */ +#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 |