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

Converted some old uses of non-C++ maths functions to their std equivalents

This commit is contained in:
jules 2017-10-09 17:45:44 +01:00
parent 15e40d48ba
commit ff99aec1ab
9 changed files with 100 additions and 99 deletions

View file

@ -72,7 +72,7 @@ public:
float sample = buffer.getReadPointer (ch)[j];
alpha = (0.8f * alpha) + (0.2f * sample);
if (fabsf (alpha) >= 0.1f)
if (std::abs (alpha) >= 0.1f)
channelTime = static_cast<int> (getSampleRate() / 2.0);
}