feature/lagrangeint
ha7ilm 2017-02-18 16:37:49 +01:00
rodzic 5f772ec3e3
commit 875434bf96
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -736,6 +736,7 @@ void fractional_decimator_ff(float* input, float* output, int input_size, fracti
//we optimize to calculate ceilf(where) only once every iteration, so we do it here:
for(;(index_high=ceilf(d->where))+d->num_poly_points+d->taps_length<input_size;d->where+=d->rate) //@fractional_decimator_ff
{
//d->num_poly_points above is theoretically more than we could have here, but this makes the spectrum look good
int sxifirst = FD_INDEX_LOW + d->xifirst;
int sxilast = FD_INDEX_LOW + d->xilast;
if(d->taps) for(int wi=0;wi<d->num_poly_points;wi++) d->filtered_buf[wi] = fir_one_pass_ff(input+FD_INDEX_LOW+wi, d->taps, d->taps_length);