Filter: replace 2*M_PI_F with M_2PI_F
This commit is contained in:
parent
6ef1ebb5dd
commit
151707cb0a
@ -47,7 +47,7 @@ public:
|
||||
return _output;
|
||||
}
|
||||
|
||||
float rc = 1.0f/(2.0f*M_PI_F*cutoff_freq);
|
||||
float rc = 1.0f/(M_2PI_F*cutoff_freq);
|
||||
float alpha = constrain_float(dt/(dt+rc), 0.0f, 1.0f);
|
||||
_output += (sample - _output) * alpha;
|
||||
return _output;
|
||||
|
Loading…
Reference in New Issue
Block a user