mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
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:
parent
b54637edc4
commit
8e5f0e37f8
2 changed files with 14 additions and 0 deletions
|
@ -54,6 +54,13 @@ struct _GstBPMDetectPrivate
|
||||||
#endif
|
#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)
|
#if defined(SOUNDTOUCH_FLOAT_SAMPLES)
|
||||||
#define ALLOWED_CAPS \
|
#define ALLOWED_CAPS \
|
||||||
"audio/x-raw, " \
|
"audio/x-raw, " \
|
||||||
|
|
|
@ -61,6 +61,13 @@ enum
|
||||||
ARG_PITCH
|
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)
|
#if defined(SOUNDTOUCH_FLOAT_SAMPLES)
|
||||||
#define SUPPORTED_CAPS \
|
#define SUPPORTED_CAPS \
|
||||||
"audio/x-raw, " \
|
"audio/x-raw, " \
|
||||||
|
|
Loading…
Reference in a new issue