ref: ccdc51bb00d5a489d79de68b073c0c277378052c
parent: 1013c5d5fbb9358679eecb93ffca25faeec21678
author: Paul Brossier <piem@piem.org>
date: Fri Mar 10 15:34:38 EST 2017
examples/aubiotrack.c: avoid saturation in when using --mix-input
--- a/examples/aubiotrack.c
+++ b/examples/aubiotrack.c
@@ -46,10 +46,12 @@
} else {
aubio_wavetable_stop ( wavetable );
}
- if (mix_input)
+ if (mix_input) {
aubio_wavetable_do (wavetable, ibuf, obuf);
- else
+ fvec_clamp(obuf, 1.);
+ } else {
aubio_wavetable_do (wavetable, obuf, obuf);
+ }
}
void process_print (void) {
--
⑨