| 408 | |
| 409 | |
| 410 | void 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 | |
| 428 | void JavascriptMidiProcessor::deferCallbacks(bool addToFront_) |
| 429 | { |
nothing calls this directly
no test coverage detected