forgot to remove precision suffix to bw_sqrtf() in bw_peak
This commit is contained in:
parent
0da7b31504
commit
84d82d039b
@ -254,7 +254,7 @@ static inline void _bw_peak_update_mm2_params(bw_peak_coeffs *BW_RESTRICT coeffs
|
|||||||
if (coeffs->param_changed & (_BW_PEAK_PARAM_PEAK_GAIN | _BW_PEAK_PARAM_BANDWIDTH)) {
|
if (coeffs->param_changed & (_BW_PEAK_PARAM_PEAK_GAIN | _BW_PEAK_PARAM_BANDWIDTH)) {
|
||||||
if (coeffs->param_changed & _BW_PEAK_PARAM_BANDWIDTH)
|
if (coeffs->param_changed & _BW_PEAK_PARAM_BANDWIDTH)
|
||||||
coeffs->bw_k = bw_pow2f(coeffs->bandwidth);
|
coeffs->bw_k = bw_pow2f(coeffs->bandwidth);
|
||||||
const float Q = bw_sqrtf_2(coeffs->bw_k * coeffs->peak_gain) * bw_rcpf(coeffs->bw_k - 1.f);
|
const float Q = bw_sqrtf(coeffs->bw_k * coeffs->peak_gain) * bw_rcpf(coeffs->bw_k - 1.f);
|
||||||
bw_mm2_set_Q(&coeffs->mm2_coeffs, Q);
|
bw_mm2_set_Q(&coeffs->mm2_coeffs, Q);
|
||||||
bw_mm2_set_coeff_bp(&coeffs->mm2_coeffs, (coeffs->peak_gain - 1.f) * bw_rcpf(Q));
|
bw_mm2_set_coeff_bp(&coeffs->mm2_coeffs, (coeffs->peak_gain - 1.f) * bw_rcpf(Q));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user