diff --git a/ext/soundtouch/gstbpmdetect.cc b/ext/soundtouch/gstbpmdetect.cc index 79f765828d..d32f219e3c 100644 --- a/ext/soundtouch/gstbpmdetect.cc +++ b/ext/soundtouch/gstbpmdetect.cc @@ -54,6 +54,13 @@ struct _GstBPMDetectPrivate #endif }; +/* For soundtouch 1.4 */ +#if defined(INTEGER_SAMPLES) +#define SOUNDTOUCH_INTEGER_SAMPLES 1 +#elif defined(FLOAT_SAMPLES) +#define SOUNDTOUCH_FLOAT_SAMPLES 1 +#endif + #if defined(SOUNDTOUCH_FLOAT_SAMPLES) #define ALLOWED_CAPS \ "audio/x-raw, " \ diff --git a/ext/soundtouch/gstpitch.cc b/ext/soundtouch/gstpitch.cc index 1235b310a1..1773acfaf6 100644 --- a/ext/soundtouch/gstpitch.cc +++ b/ext/soundtouch/gstpitch.cc @@ -61,6 +61,13 @@ enum ARG_PITCH }; +/* For soundtouch 1.4 */ +#if defined(INTEGER_SAMPLES) +#define SOUNDTOUCH_INTEGER_SAMPLES 1 +#elif defined(FLOAT_SAMPLES) +#define SOUNDTOUCH_FLOAT_SAMPLES 1 +#endif + #if defined(SOUNDTOUCH_FLOAT_SAMPLES) #define SUPPORTED_CAPS \ "audio/x-raw, " \