examples/: use native aubio smpl_t for aubio_process_func_t
authorPaul Brossier <piem@piem.org>
Fri, 25 Sep 2009 02:12:23 +0000 (04:12 +0200)
committerPaul Brossier <piem@piem.org>
Fri, 25 Sep 2009 02:12:23 +0000 (04:12 +0200)
examples/aubiomfcc.c
examples/aubionotes.c
examples/aubioonset.c
examples/aubioquiet.c
examples/aubiotrack.c
examples/utils.h

index f5752cb..27a92f0 100644 (file)
@@ -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*/
   
index 98b26e5..e8e374a 100644 (file)
@@ -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++) {
index ab8374f..ea9f12f 100644 (file)
@@ -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++) {
index 4daa173..5c162c3 100644 (file)
@@ -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++) {
index 070ed8a..819bfc9 100644 (file)
@@ -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++) {
index cc55cb8..141ee99 100644 (file)
@@ -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);