soundtouch: Fix compilation with soundtouch 1.4.0
authorSebastian Dröge <slomo@circular-chaos.org>
Tue, 3 Sep 2013 15:36:08 +0000 (17:36 +0200)
committerSebastian Dröge <slomo@circular-chaos.org>
Tue, 3 Sep 2013 15:36:53 +0000 (17:36 +0200)
It used FLOAT_SAMPLES/INTEGER_SAMPLES #defines instead of ones properly
prefixed with a namespace.

https://bugzilla.gnome.org/show_bug.cgi?id=707390

ext/soundtouch/gstbpmdetect.cc
ext/soundtouch/gstpitch.cc

index 79f765828d335646bc453f50379bf123c82a56ab..d32f219e3c7bb08ee226c84b4e4c986a309ec635 100644 (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, " \
index 1235b310a1cf8c8cbb17e9cc5d44e78e2f15ca77..1773acfaf6d55b3b8163ee4f58a8362efefac99a 100644 (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, " \