fixed coeffs for bw_src(_int).h for real
This commit is contained in:
parent
c05b6d84db
commit
5eed8c2878
@ -124,7 +124,7 @@ static inline void bw_src_init(bw_src_coeffs *BW_RESTRICT coeffs, float ratio) {
|
||||
const float T = bw_tanf_3(1.570796326794896f / (float)fc);
|
||||
const float T2 = T * T;
|
||||
const float k = 1.f / (T * (T * (T * (T + 2.613125929752753f) + 3.414213562373095f) + 2.613125929752753f) + 1.f);
|
||||
coeffs->b0 = T2 * T2;
|
||||
coeffs->b0 = k * T2 * T2;
|
||||
coeffs->b1 = 4.f * coeffs->b0;
|
||||
coeffs->b2 = 6.f * coeffs->b0;
|
||||
coeffs->a1 = k * (T * (T2 * (4.f * T + 5.226251859505504f) - 5.226251859505504f) - 4.f);
|
||||
|
@ -130,7 +130,7 @@ static inline void bw_src_int_init(bw_src_int_coeffs *BW_RESTRICT coeffs, int ra
|
||||
const float T = bw_tanf_3(1.570796326794896f / (float)fc);
|
||||
const float T2 = T * T;
|
||||
const float k = 1.f / (T * (T * (T * (T + 2.613125929752753f) + 3.414213562373095f) + 2.613125929752753f) + 1.f);
|
||||
coeffs->b0 = T2 * T2;
|
||||
coeffs->b0 = k * T2 * T2;
|
||||
coeffs->b1 = 4.f * coeffs->b0;
|
||||
coeffs->b2 = 6.f * coeffs->b0;
|
||||
coeffs->a1 = k * (T * (T2 * (4.f * T + 5.226251859505504f) - 5.226251859505504f) - 4.f);
|
||||
|
Loading…
Reference in New Issue
Block a user