1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-20 01:14:20 +00:00

Began phasing out double_Pi and float_Pi in favour of MathConstants::pi. Also added MathConstants::twoPi

This commit is contained in:
jules 2017-12-06 11:16:22 +00:00
parent daab5147c2
commit d0111a4f96
49 changed files with 307 additions and 292 deletions

View file

@ -88,7 +88,7 @@ public:
const float freq = (float) (440.0 / getSampleRate());
for (int i = 0; i < fillSamples; ++i)
channelBuffer[i] += std::sin (2.0f * float_Pi * freq * static_cast<float> (sampleOffset++));
channelBuffer[i] += std::sin (MathConstants<float>::twoPi * freq * static_cast<float> (sampleOffset++));
}
}