fix(tracker): reset also biquad filter states to avoid endless nans

This commit is contained in:
5684185+vsariola@users.noreply.github.com 2025-04-28 15:23:00 +03:00
parent f72f29188b
commit bf0d697b80

View File

@ -280,6 +280,8 @@ func (d *loudnessDetector) reset() {
d.averagedPowers[i] = d.averagedPowers[i][:0]
d.maxPowers[i] = 0
}
// reset the biquad states
d.states = [2][3]biquadState{}
d.integratedPower = 0
}