From: Paul Brossier Date: Wed, 30 Mar 2005 02:53:46 +0000 (+0000) Subject: fix jack playing with short buffer (move pos) X-Git-Tag: bzr2git~931 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1f403595a4c3996619093a37a74c54ffd3f142a8;p=aubio.git fix jack playing with short buffer (move pos) (aubionotes.c and aubioonset.c) added samplerate query to aubioonset.c --- 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