MCPcopy Create free account
hub / github.com/christophhart/HISE / stopTimer

Method stopTimer

hi_scripting/scripting/api/ScriptingApi.cpp:5643–5656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5641}
5642
5643void ScriptingApi::Synth::stopTimer()
5644{
5645 if(jp != nullptr && jp->isDeferred())
5646 {
5647 owner->stopSynthTimer(jp->getIndexInChain());
5648 jp->stopTimer();
5649 }
5650 else
5651 {
5652 if(parentMidiProcessor != nullptr) owner->stopSynthTimer(parentMidiProcessor->getIndexInChain());
5653
5654 parentMidiProcessor->setIndexInChain(-1);
5655 }
5656}
5657
5658bool ScriptingApi::Synth::isTimerRunning() const
5659{

Callers 2

stopMethod · 0.45
callWithDelayMethod · 0.45

Calls 4

isDeferredMethod · 0.80
stopSynthTimerMethod · 0.80
getIndexInChainMethod · 0.80
setIndexInChainMethod · 0.80

Tested by

no test coverage detected