From: Paul Brossier Date: Sat, 28 Dec 2013 23:40:33 +0000 (-0400) Subject: examples/aubiotrack.c: synth only when need be X-Git-Tag: 0.4.1~102^2~19 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=fc7043a70009d44090caa0a19b44926675fa140a;p=aubio.git examples/aubiotrack.c: synth only when need be --- diff --git a/examples/aubiotrack.c b/examples/aubiotrack.c index 5e1be664..8bae20d2 100644 --- a/examples/aubiotrack.c +++ b/examples/aubiotrack.c @@ -35,6 +35,7 @@ void process_block(fvec_t * ibuf, fvec_t *obuf) { is_beat = fvec_get_sample (tempo_out, 0); if (silence_threshold != -90.) is_silence = aubio_silence_detection(ibuf, silence_threshold); + if ( !usejack && ! sink_uri ) return; fvec_zeros (obuf); if ( is_beat && !is_silence ) { aubio_wavetable_play ( wavetable );