shithub: aubio

Download patch

ref: 687835d1bdb0dde10b985e8c45378594549f3a09
parent: 78a564b0be96a5ece7d3e049abad9fb81a66b9a2
author: Paul Brossier <piem@piem.org>
date: Thu Dec 6 10:32:12 EST 2018

[tests] pitchshift tests to pass without rubberband

--- a/tests/src/effects/test-pitchshift.c
+++ b/tests/src/effects/test-pitchshift.c
@@ -19,6 +19,7 @@
     return err;
   }
 
+#ifdef HAVE_RUBBERBAND
   uint_t samplerate = 0;
   uint_t hop_size = 64;
   smpl_t transpose = 0.;
@@ -74,6 +75,10 @@
   del_fvec(vec);
   del_fvec(out);
 beach_fvec:
+#else
+  err = 0;
+  PRINT_ERR("aubio was not compiled with rubberband\n");
+#endif
   return err;
 }
 
@@ -91,10 +96,14 @@
 
   aubio_pitchshift_t *p = new_aubio_pitchshift(mode, transpose,
       hop_size, samplerate);
+#ifdef HAVE_RUBBERBAND
   if (!p) return 1;
   if (!aubio_pitchshift_set_pitchscale(p, 0.1)) return 1;
   if (!aubio_pitchshift_set_transpose(p, -30)) return 1;
   del_aubio_pitchshift(p);
+#else
+  if (p) return 1;
+#endif
 
   return run_on_default_source_and_sink(main);
 }