mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
clamp to 0.0f when within EPSILON neighborhood of 0.0f
This commit is contained in:
parent
1eab983ee0
commit
256bd627fa
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue