bc4b317249
- Trim header PR: 176536 Submitted by: ports fury
22 lines
687 B
C++
22 lines
687 B
C++
--- creox/effects_dsp/phaserprocessor.cpp.orig
|
|
+++ creox/effects_dsp/phaserprocessor.cpp
|
|
@@ -156,7 +157,8 @@
|
|
{
|
|
const float omega = 2.0f * float(M_PI) * m_stepFrequency / m_samplerate_d;
|
|
float sn, cs;
|
|
- sincosf(omega, &sn, &cs);
|
|
+ sn = sinf(omega);
|
|
+ cs = cosf(omega);
|
|
*(m_coefBuffPrelim++) = cs; // cs
|
|
*(m_coefBuffPrelim++) = sn / m_resonance; // alpha (m_resonance = 2.0*resonance)
|
|
m_stepFrequency *= m_expStep;
|
|
@@ -231,7 +233,8 @@
|
|
}
|
|
|
|
float sn, cs;
|
|
- sincosf(omega, &sn, &cs);
|
|
+ sn = sinf(omega);
|
|
+ cs = cosf(omega);
|
|
register const float alpha = sn / m_resonance; // alpha (m_resonance = 2.0 * resonance)
|
|
|
|
// perform filter
|