projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e467cf9
)
src/effects/pitchshift.c: avoid error with rubberband 1.3, print a warning
author
Paul Brossier
<piem@piem.org>
Mon, 19 Sep 2016 20:50:19 +0000
(22:50 +0200)
committer
Paul Brossier
<piem@piem.org>
Mon, 19 Sep 2016 20:50:19 +0000
(22:50 +0200)
src/effects/pitchshift.c
patch
|
blob
|
history
diff --git
a/src/effects/pitchshift.c
b/src/effects/pitchshift.c
index
617c7b5
..
9518906
100644
(file)
--- a/
src/effects/pitchshift.c
+++ b/
src/effects/pitchshift.c
@@
-27,6
+27,14
@@
#include "rubberband/rubberband-c.h"
+// check rubberband is 1.8.1, warn if 1.3
+#if !((RUBBERBAND_API_MAJOR_VERSION >= 2) && \
+ (RUBBERBAND_API_MINOR_VERSION >= 5))
+#warning RubberBandOptionDetectorSoft not available, \
+ please upgrade rubberband to version 1.8.1 or higher
+#define RubberBandOptionDetectorSoft 0x00000000
+#endif
+
/** generic pitch shifting structure */
struct _aubio_pitchshift_t
{