clamp to 0.0f when within EPSILON neighborhood of 0.0f

This commit is contained in:
Craig Hansen-Sturm 2014-09-18 13:12:53 -07:00
parent 1eab983ee0
commit 256bd627fa

View file

@ -75,6 +75,8 @@ public:
- (_b1 * _ym1)
- (_b2 * _ym2);
y = (y >= -EPSILON && y < EPSILON) ? 0.0f : y; // clamp to 0
// update delay line
_xm2 = _xm1;
_xm1 = x;