shithub: aubio

Download patch

ref: 5a1ff62a9ac2f384026c17c677690e082733adc4
parent: 946cad34846fd7d3cb186ddbddfee6b69a9dcf5f
author: Paul Brossier <piem@altern.org>
date: Sat May 28 02:42:21 EDT 2005

fix compilation without jack
fix compilation without jack


--- a/examples/utils.c
+++ b/examples/utils.c
@@ -269,7 +269,7 @@
 
 void examples_common_process(aubio_process_func_t process_func, aubio_print_func_t print ){
   if(usejack) {
-#ifdef JACK_SUPPORT
+#if JACK_SUPPORT
     aubio_jack_t * jack_setup;
     debug("Jack init ...\n");
     jack_setup = new_aubio_jack(channels, channels,
--- a/examples/utils.h
+++ b/examples/utils.h
@@ -43,6 +43,10 @@
 void examples_common_init(int argc, char **argv);
 void examples_common_del(void);
 typedef void (aubio_print_func_t)(void);
+#ifndef JACK_SUPPORT
+typedef int (*aubio_process_func_t)
+        (smpl_t **input, smpl_t **output, int nframes);
+#endif
 void examples_common_process(aubio_process_func_t process_func, aubio_print_func_t print);