From e7f197e8c26f3c60f963006d955b84dd82d7844e Mon Sep 17 00:00:00 2001 From: JP Cimalando Date: Sat, 20 Jul 2019 20:00:40 +0200 Subject: [PATCH] reset the BBD-rate accumulator each frame --- bbd_line.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bbd_line.cc b/bbd_line.cc index 5600f61..976bde9 100644 --- a/bbd_line.cc +++ b/bbd_line.cc @@ -67,6 +67,9 @@ void BBD_Line::process(unsigned n, float *inout, const float *clock) for (unsigned i = 0; i < n; ++i) { double fclk = clock[i]; + for (unsigned m = 0; m < Mout; ++m) + Xout[m] = 0; + if (fclk > 0) { double pclk_old = pclk; pclk += fclk;