commit c6afc785fe1f9a3e5e62a244d1ea1d4226f9cfc1
parent ce376655c90432051f2c45b02c19e5e6d5173c93
Author: [email protected] <[email protected]>
Date: Thu, 3 Nov 2016 07:36:34 +0300
Fix biquad_zl
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/kfr/dsp/biquad.hpp b/include/kfr/dsp/biquad.hpp
@@ -206,7 +206,7 @@ struct expression_biquads_zl : expression<E1>
for (size_t i = 0; i < width; i++)
{
state.out = process(bq, state, insertleft(in[i], state.out));
- out(i) = state.out[filters - 1];
+ out[i] = state.out[filters - 1];
}
if (index + width == block_end)
saved_state = state;
@@ -217,7 +217,7 @@ struct expression_biquads_zl : expression<E1>
for (size_t i = 0; i < width; i++)
{
state.out = process(bq, state, insertleft(T(0), state.out));
- out(i) = state.out[filters - 1];
+ out[i] = state.out[filters - 1];
}
}
else
@@ -227,13 +227,13 @@ struct expression_biquads_zl : expression<E1>
{
const vec<T, 1> in = this->argument_first(cinput, index + i, vec_t<T, 1>());
state.out = process(bq, state, insertleft(in[i], state.out));
- out(i) = state.out[filters - 1];
+ out[i] = state.out[filters - 1];
}
saved_state = state;
for (; i < width; i++)
{
state.out = process(bq, state, insertleft(T(0), state.out));
- out(i) = state.out[filters - 1];
+ out[i] = state.out[filters - 1];
}
}
return out;