Tweaked AudioPCI resampling filter gain to reduce clipping.
This commit is contained in:
parent
a4b8eba56b
commit
51874cf2a8
1 changed files with 2 additions and 0 deletions
|
|
@ -1189,6 +1189,8 @@ static void generate_es1371_filter()
|
||||||
for (n = 0; n < ES1371_NCoef; n++)
|
for (n = 0; n < ES1371_NCoef; n++)
|
||||||
gain += low_fir_es1371_coef[n] / (float)N;
|
gain += low_fir_es1371_coef[n] / (float)N;
|
||||||
|
|
||||||
|
gain /= 0.95;
|
||||||
|
|
||||||
/*Normalise filter, to produce unity gain*/
|
/*Normalise filter, to produce unity gain*/
|
||||||
for (n = 0; n < ES1371_NCoef; n++)
|
for (n = 0; n < ES1371_NCoef; n++)
|
||||||
low_fir_es1371_coef[n] /= gain;
|
low_fir_es1371_coef[n] /= gain;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue