Several CPU usage optimizations

This commit is contained in:
Jack Andersen
2016-05-21 22:35:55 -10:00
parent fbafa397fe
commit 654eccf82d
10 changed files with 65623 additions and 21 deletions

View File

@@ -31,9 +31,9 @@ void Envelope::keyOff()
m_curTime = 0.0;
}
float Envelope::nextSample(double sampleRate)
float Envelope::advance(double dt)
{
m_curTime += 1.0 / sampleRate;
m_curTime += dt;
switch (m_phase)
{