From c423c3db7ef97947bec4b652c7224ca7da12f279 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 25 Sep 2009 04:12:23 +0200 Subject: [PATCH] examples/: use native aubio smpl_t for aubio_process_func_t --- examples/aubiomfcc.c | 4 ++-- examples/aubionotes.c | 4 ++-- examples/aubioonset.c | 4 ++-- examples/aubioquiet.c | 4 ++-- examples/aubiotrack.c | 4 ++-- examples/utils.h | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/examples/aubiomfcc.c b/examples/aubiomfcc.c index f5752cb3..27a92f09 100644 --- a/examples/aubiomfcc.c +++ b/examples/aubiomfcc.c @@ -29,8 +29,8 @@ uint_t n_coefs = 13; unsigned int pos = 0; /*frames%dspblocksize*/ uint_t usepitch = 0; -int aubio_process(float **input, float **output, int nframes); -int aubio_process(float **input, float **output, int nframes) { +int aubio_process(smpl_t **input, smpl_t **output, int nframes); +int aubio_process(smpl_t **input, smpl_t **output, int nframes) { unsigned int i; /*channels*/ unsigned int j; /*frames*/ diff --git a/examples/aubionotes.c b/examples/aubionotes.c index 98b26e55..e8e374a2 100644 --- a/examples/aubionotes.c +++ b/examples/aubionotes.c @@ -21,8 +21,8 @@ unsigned int pos = 0; /*frames%dspblocksize*/ uint_t usepitch = 1; -int aubio_process(float **input, float **output, int nframes); -int aubio_process(float **input, float **output, int nframes) { +int aubio_process(smpl_t **input, smpl_t **output, int nframes); +int aubio_process(smpl_t **input, smpl_t **output, int nframes) { unsigned int i; /*channels*/ unsigned int j; /*frames*/ for (j=0;j<(unsigned)nframes;j++) { diff --git a/examples/aubioonset.c b/examples/aubioonset.c index ab8374fa..ea9f12f3 100644 --- a/examples/aubioonset.c +++ b/examples/aubioonset.c @@ -21,8 +21,8 @@ unsigned int pos = 0; /*frames%dspblocksize*/ uint_t usepitch = 0; -int aubio_process(float **input, float **output, int nframes); -int aubio_process(float **input, float **output, int nframes) { +int aubio_process(smpl_t **input, smpl_t **output, int nframes); +int aubio_process(smpl_t **input, smpl_t **output, int nframes) { unsigned int i; /*channels*/ unsigned int j; /*frames*/ for (j=0;j<(unsigned)nframes;j++) { diff --git a/examples/aubioquiet.c b/examples/aubioquiet.c index 4daa173c..5c162c3e 100644 --- a/examples/aubioquiet.c +++ b/examples/aubioquiet.c @@ -22,8 +22,8 @@ unsigned int pos = 0; /*frames%dspblocksize*/ sint_t wassilence = 1, issilence; uint_t usepitch = 0; -int aubio_process(float **input, float **output, int nframes); -int aubio_process(float **input, float **output, int nframes) { +int aubio_process(smpl_t **input, smpl_t **output, int nframes); +int aubio_process(smpl_t **input, smpl_t **output, int nframes) { unsigned int i; /*channels*/ unsigned int j; /*frames*/ for (j=0;j<(unsigned)nframes;j++) { diff --git a/examples/aubiotrack.c b/examples/aubiotrack.c index 070ed8a0..819bfc95 100644 --- a/examples/aubiotrack.c +++ b/examples/aubiotrack.c @@ -25,8 +25,8 @@ fvec_t * out = NULL; aubio_tempo_t * bt = NULL; smpl_t istactus = 0; -int aubio_process(float **input, float **output, int nframes); -int aubio_process(float **input, float **output, int nframes) { +int aubio_process(smpl_t **input, smpl_t **output, int nframes); +int aubio_process(smpl_t **input, smpl_t **output, int nframes) { unsigned int i; /*channels*/ unsigned int j; /*frames*/ for (j=0;j<(unsigned)nframes;j++) { diff --git a/examples/utils.h b/examples/utils.h index cc55cb8e..141ee99e 100644 --- a/examples/utils.h +++ b/examples/utils.h @@ -53,7 +53,7 @@ void examples_common_del(void); typedef void (aubio_print_func_t)(void); #ifndef HAVE_JACK typedef int (*aubio_process_func_t) - (float **input, float **output, int nframes); + (smpl_t **input, smpl_t **output, int nframes); #endif void examples_common_process(aubio_process_func_t process_func, aubio_print_func_t print); void flush_process(aubio_process_func_t process_func, aubio_print_func_t print); -- 2.11.0