ref: 822190cd6836d85b9a3cfad4e27031f6a20ac43e
parent: 5c6acbb21e51480ab458e9b72257e31766733a52
author: Paul Brossier <[email protected]>
date: Sat Dec 28 14:39:05 EST 2013
examples/aubioonset.c: synth only when need be
--- a/examples/aubioonset.c
+++ b/examples/aubioonset.c
@@ -31,9 +31,10 @@
void
process_block(fvec_t *ibuf, fvec_t *obuf) {
- fvec_zeros(obuf);
aubio_onset_do (o, ibuf, onset);
is_onset = fvec_get_sample(onset, 0);
+ if ( !usejack && ! sink_uri ) return;
+ fvec_zeros(obuf);
if ( is_onset ) {
aubio_wavetable_play ( wavetable );
} else {