Tweaked AudioPCI resampling filter gain to reduce clipping.

This commit is contained in:
SarahW 2018-03-28 21:10:08 +01:00
commit 51874cf2a8

View file

@ -1189,6 +1189,8 @@ static void generate_es1371_filter()
for (n = 0; n < ES1371_NCoef; n++)
gain += low_fir_es1371_coef[n] / (float)N;
gain /= 0.95;
/*Normalise filter, to produce unity gain*/
for (n = 0; n < ES1371_NCoef; n++)
low_fir_es1371_coef[n] /= gain;