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

Method runTimerCallback

hi_scripting/scripting/ScriptProcessorModules.cpp:410–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408
409
410void JavascriptMidiProcessor::runTimerCallback(int /*offsetInBuffer*//*=-1*/)
411{
412 if (isBypassed() || onTimerCallback->isSnippetEmpty()) return;
413
414 scriptEngine->maximumExecutionTime = HiseJavascriptEngine::getDefaultTimeOut();
415
416 if (lastResult.failed()) return;
417
418 scriptEngine->executeCallback(onTimer, &lastResult);
419
420 if (isDeferred())
421 {
422 sendOtherChangeMessage(dispatch::library::ProcessorChangeEvent::OtherUnused, dispatch::sendNotificationSync);
423 }
424
425 BACKEND_ONLY(if (!lastResult.wasOk()) debugError(this, lastResult.getErrorMessage()));
426}
427
428void JavascriptMidiProcessor::deferCallbacks(bool addToFront_)
429{

Callers

nothing calls this directly

Calls 8

getDefaultTimeOutFunction · 0.85
isSnippetEmptyMethod · 0.80
isBypassedFunction · 0.50
ifFunction · 0.50
failedMethod · 0.45
executeCallbackMethod · 0.45
wasOkMethod · 0.45
getErrorMessageMethod · 0.45

Tested by

no test coverage detected