From f4adefaaf66eb7ea216476dd584b65452230fcfb Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 28 Dec 2013 19:39:45 -0400 Subject: [PATCH] examples/aubiopitch.c: synth only when need be --- examples/aubiopitch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/aubiopitch.c b/examples/aubiopitch.c index 5c046f91..f960b495 100644 --- a/examples/aubiopitch.c +++ b/examples/aubiopitch.c @@ -30,12 +30,12 @@ fvec_t *pitch; void process_block(fvec_t * ibuf, fvec_t * obuf) { - fvec_zeros(obuf); aubio_pitch_do (o, ibuf, pitch); + if ( !usejack && ! sink_uri ) return; + fvec_zeros(obuf); smpl_t freq = fvec_get_sample(pitch, 0); aubio_wavetable_set_amp ( wavetable, aubio_level_lin (ibuf) ); aubio_wavetable_set_freq ( wavetable, freq ); - if (mix_input) aubio_wavetable_do (wavetable, ibuf, obuf); else -- 2.11.0