tests/src/test-phasevoc-jack.c: print warning if jack not built in, disable testing
authorPaul Brossier <piem@piem.org>
Thu, 5 Nov 2009 23:09:38 +0000 (00:09 +0100)
committerPaul Brossier <piem@piem.org>
Thu, 5 Nov 2009 23:09:38 +0000 (00:09 +0100)
tests/src/test-phasevoc-jack.c

index ffc7673ef1f2ae76670eb25ee0555c836ffaf649..cd5753a13f8dd7798f5bb9ac493bca681833ab72 100644 (file)
@@ -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 @@ int main(){
           sleep(1);
         } while(testing);
         aubio_jack_close(jack_setup);
+#else
+        fprintf(stderr, "WARNING: no jack support\n");
 #endif
         
         del_aubio_pvoc(pv);