fixed fractional_decimator_ff for N=6 interpolator, still interesting effect on the spectrum

This commit is contained in:
ha7ilm 2017-02-18 16:24:19 +01:00
parent 5f8f8695d3
commit 0306b5b5bf
2 changed files with 2 additions and 2 deletions

2
csdr.c
View file

@ -1345,7 +1345,7 @@ int main(int argc, char *argv[])
//for(int=0;i<taps_length; i++) fprintf(stderr,"%g ",taps[i]);
fprintf(stderr,"fractional_decimator_ff: not using taps\n");
fractional_decimator_ff_t d = fractional_decimator_ff_init(rate, 4, NULL, 0);
fractional_decimator_ff_t d = fractional_decimator_ff_init(rate, 6, NULL, 0);
for(;;)
{
FEOF_CHECK;

View file

@ -759,7 +759,7 @@ void fractional_decimator_ff(float* input, float* output, int input_size, fracti
output[oi++]=acc;
}
d->input_processed = FD_INDEX_LOW + d->xifirst;
d->where -= d->input_processed + d->xifirst + 1;
d->where -= d->input_processed;
d->output_size = oi;
}