MCPcopy Create free account
hub / github.com/awawa-dev/HyperHDR / start

Method start

sources/effects/Effect.cpp:107–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107void Effect::start()
108{
109 _ledBuffer.resize(_ledCount);
110
111 _effect->Init(_image, 10);
112
113 if (_timeout > 0)
114 _endTime = InternalClock::now() + _timeout;
115 else
116 _endTime = -1;
117
118 _timer.setInterval(_effect->GetSleepTime());
119
120 Info(_log, "Begin playing the %s with priority: %i", (_isSoundEffect) ? "music effect" : "effect", _priority);
121
122 run();
123 _timer.start();
124}
125
126void Effect::run()
127{

Callers 2

runEffectScriptMethod · 0.45

Calls 3

GetSleepTimeMethod · 0.80
resizeMethod · 0.45
InitMethod · 0.45

Tested by

no test coverage detected