mirror of
https://github.com/AxioDL/amuse.git
synced 2025-12-08 21:17:49 +00:00
Several CPU usage optimizations
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user