shithub: aubio

Download patch

ref: c423c3db7ef97947bec4b652c7224ca7da12f279
parent: 194ef6b3c390b77cba72dd8f05d749add67713ef
author: Paul Brossier <piem@piem.org>
date: Fri Sep 25 00:12:23 EDT 2009

examples/: use native aubio smpl_t for aubio_process_func_t

--- a/examples/aubiomfcc.c
+++ b/examples/aubiomfcc.c
@@ -29,8 +29,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*/
   
--- 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++) {
--- 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++) {
--- a/examples/aubioquiet.c
+++ b/examples/aubioquiet.c
@@ -22,8 +22,8 @@
 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++) {
--- a/examples/aubiotrack.c
+++ b/examples/aubiotrack.c
@@ -25,8 +25,8 @@
 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++) {
--- a/examples/utils.h
+++ b/examples/utils.h
@@ -53,7 +53,7 @@
 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);