haha, fixed that artifact too. Strange flickering line in the spectrum at -100 dB was caused by reading some samples out of region
This commit is contained in:
parent
0306b5b5bf
commit
1fab87af1d
1 changed files with 1 additions and 1 deletions
|
@ -734,7 +734,7 @@ void fractional_decimator_ff(float* input, float* output, int input_size, fracti
|
||||||
int index_high;
|
int index_high;
|
||||||
#define FD_INDEX_LOW (index_high-1)
|
#define FD_INDEX_LOW (index_high-1)
|
||||||
//we optimize to calculate ceilf(where) only once every iteration, so we do it here:
|
//we optimize to calculate ceilf(where) only once every iteration, so we do it here:
|
||||||
for(;(index_high=ceilf(d->where))+d->xilast+d->taps_length<input_size;d->where+=d->rate) //@fractional_decimator_ff
|
for(;(index_high=ceilf(d->where))+d->xilast+1+d->taps_length<input_size;d->where+=d->rate) //@fractional_decimator_ff
|
||||||
{
|
{
|
||||||
int sxifirst = FD_INDEX_LOW + d->xifirst;
|
int sxifirst = FD_INDEX_LOW + d->xifirst;
|
||||||
int sxilast = FD_INDEX_LOW + d->xilast;
|
int sxilast = FD_INDEX_LOW + d->xilast;
|
||||||
|
|
Loading…
Reference in a new issue