freebsd-ports/audio/creox/files/patch-creox__effects_dsp__phaserprocessor.cpp
Martin Wilke bc4b317249 - Update to 0.3.0
- Trim header

PR:		176536
Submitted by:	ports fury
2013-03-02 05:53:23 +00:00

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