MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / setLFO

Method setLFO

extlibs/soloud/src/core/soloud_fader.cpp:48–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 }
47
48 void Fader::setLFO(float aFrom, float aTo, double aTime, double aStartTime)
49 {
50 mActive = 2;
51 mCurrent = 0;
52 mFrom = aFrom;
53 mTo = aTo;
54 mTime = aTime;
55 mDelta = (aTo - aFrom) / 2;
56 if (mDelta < 0) mDelta = -mDelta;
57 mStartTime = aStartTime;
58 mEndTime = (float)M_PI * 2 / mTime;
59 }
60
61 float Fader::get(double aCurrentTime)
62 {

Callers 2

oscillateGlobalVolumeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected