soundtouch: Fix compilation with soundtouch 1.4.0

It used FLOAT_SAMPLES/INTEGER_SAMPLES #defines instead of ones properly
prefixed with a namespace.

https://bugzilla.gnome.org/show_bug.cgi?id=707390
This commit is contained in:
Sebastian Dröge 2013-09-03 17:36:08 +02:00
parent b54637edc4
commit 8e5f0e37f8
2 changed files with 14 additions and 0 deletions

View file

@ -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, " \

View file

@ -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, " \