mirror of
https://github.com/vsariola/sointu.git
synced 2025-06-04 01:28:45 -04:00
fix(tracker): reset also biquad filter states to avoid endless nans
This commit is contained in:
parent
f72f29188b
commit
bf0d697b80
@ -280,6 +280,8 @@ func (d *loudnessDetector) reset() {
|
|||||||
d.averagedPowers[i] = d.averagedPowers[i][:0]
|
d.averagedPowers[i] = d.averagedPowers[i][:0]
|
||||||
d.maxPowers[i] = 0
|
d.maxPowers[i] = 0
|
||||||
}
|
}
|
||||||
|
// reset the biquad states
|
||||||
|
d.states = [2][3]biquadState{}
|
||||||
d.integratedPower = 0
|
d.integratedPower = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user