From 1f403595a4c3996619093a37a74c54ffd3f142a8 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 30 Mar 2005 02:53:46 +0000 Subject: [PATCH] fix jack playing with short buffer (move pos) (aubionotes.c and aubioonset.c) added samplerate query to aubioonset.c --- examples/aubionotes.c | 3 ++- examples/aubioonset.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/aubionotes.c b/examples/aubionotes.c index aad56a15..8fea1307 100644 --- a/examples/aubionotes.c +++ b/examples/aubionotes.c @@ -72,6 +72,8 @@ aubio_midi_player_t * mplay; aubio_midi_driver_t * mdriver; aubio_midi_event_t * event; +unsigned int pos = 0; /*frames%dspblocksize*/ + void send_noteon(aubio_midi_driver_t * d, int pitch, int velo); void send_noteon(aubio_midi_driver_t * d, int pitch, int velo) { @@ -102,7 +104,6 @@ int aubio_process(float **input, float **output, int nframes); int aubio_process(float **input, float **output, int nframes) { unsigned int i; /*channels*/ unsigned int j; /*frames*/ - unsigned int pos = 0; /*frames%dspblocksize*/ for (j=0;j