shithub: aubio

Download patch

ref: 7b485af2ed1a2eb3c77d22cbfce5e7d23ab07c5b
parent: 2359cbd4974a3e9ff99496d647ba12c232ad91bf
author: Paul Brossier <piem@piem.org>
date: Thu Nov 5 19:09:38 EST 2009

tests/src/test-phasevoc-jack.c: print warning if jack not built in, disable testing

--- a/tests/src/test-phasevoc-jack.c
+++ b/tests/src/test-phasevoc-jack.c
@@ -7,11 +7,12 @@
  *
  */
 
+#include <stdio.h>
 #include <unistd.h>  /* sleep() */
 #include <aubio.h>
 #include "jackio.h"
 
-uint_t testing  = 1;  /* change this to 1 to listen        */
+uint_t testing  = 0;  /* change this to 1 to listen        */
 
 uint_t win_s    = 512;/* window size                       */
 uint_t hop_s    = 128;/* hop size                          */
@@ -47,6 +48,8 @@
           sleep(1);
         } while(testing);
         aubio_jack_close(jack_setup);
+#else
+        fprintf(stderr, "WARNING: no jack support\n");
 #endif
         
         del_aubio_pvoc(pv);