Skip to content

Commit

Permalink
reset the BBD-rate accumulator each frame
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcima committed Jul 20, 2019
1 parent 971a7a8 commit e7f197e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bbd_line.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e7f197e

Please sign in to comment.