ref: e9e2a870df3deec70e7eaedd97bfc24412fba595
parent: 8122e54ad1a17377db3662878d2f5ff515d15201
author: Paul Brossier <piem@piem.org>
date: Sat Dec 7 17:48:31 EST 2013
examples/: define aubio_process_func_t once in utils.h
--- a/examples/jackio.c
+++ b/examples/jackio.c
@@ -22,8 +22,9 @@
#include "config.h"
#if HAVE_JACK
-#include "aubio_priv.h"
+#include "utils.h" // for aubio_process_func_t
#include "jackio.h"
+#include "aubio_priv.h"
typedef jack_default_audio_sample_t jack_sample_t;
--- a/examples/jackio.h
+++ b/examples/jackio.h
@@ -39,8 +39,6 @@
/** jack object */
typedef struct _aubio_jack_t aubio_jack_t;
-/** jack process function */
-typedef int (*aubio_process_func_t) (fvec_t * input, fvec_t * output);
/** jack device creation function */
aubio_jack_t *new_aubio_jack (uint_t hop_size,
--- a/examples/parse_args.h
+++ b/examples/parse_args.h
@@ -40,8 +40,6 @@
extern smpl_t silence_threshold;
extern uint_t mix_input;
-typedef int (*aubio_process_func_t)(fvec_t * input, fvec_t * output);
-
// functions defined in utils.c
extern void examples_common_init (int argc, char **argv);
extern void examples_common_del (void);
--- a/examples/utils.h
+++ b/examples/utils.h
@@ -51,3 +51,5 @@
typedef void (aubio_print_func_t) (void);
void send_noteon (int pitch, int velo);
+/** common process function */
+typedef int (*aubio_process_func_t) (fvec_t * input, fvec_t * output);
--
⑨