fixed fractional_decimator_ff for N=6 interpolator, still interesting effect on the spectrum
This commit is contained in:
parent
5f8f8695d3
commit
0306b5b5bf
2 changed files with 2 additions and 2 deletions
2
csdr.c
2
csdr.c
|
@ -1345,7 +1345,7 @@ int main(int argc, char *argv[])
|
||||||
//for(int=0;i<taps_length; i++) fprintf(stderr,"%g ",taps[i]);
|
//for(int=0;i<taps_length; i++) fprintf(stderr,"%g ",taps[i]);
|
||||||
|
|
||||||
fprintf(stderr,"fractional_decimator_ff: not using taps\n");
|
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(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
FEOF_CHECK;
|
FEOF_CHECK;
|
||||||
|
|
|
@ -759,7 +759,7 @@ void fractional_decimator_ff(float* input, float* output, int input_size, fracti
|
||||||
output[oi++]=acc;
|
output[oi++]=acc;
|
||||||
}
|
}
|
||||||
d->input_processed = FD_INDEX_LOW + d->xifirst;
|
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;
|
d->output_size = oi;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue