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

Method registerCallbacks

hi_scripting/scripting/ScriptProcessor.cpp:1540–1550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1538
1539
1540void JavascriptProcessor::registerCallbacks()
1541{
1542 const Processor* p = dynamic_cast<Processor*>(this);
1543
1544 const double bufferTime = (double)p->getLargestBlockSize() / p->getSampleRate() * 1000.0;
1545
1546 for (int i = 0; i < getNumSnippets(); i++)
1547 {
1548 scriptEngine->registerCallbackName(getSnippet(i)->getCallbackName(), getSnippet(i)->getNumArgs(), bufferTime);
1549 }
1550}
1551
1552
1553JavascriptProcessor::SnippetDocument * JavascriptProcessor::getSnippet(const Identifier& id)

Callers

nothing calls this directly

Calls 7

getSnippetFunction · 0.85
getLargestBlockSizeMethod · 0.80
registerCallbackNameMethod · 0.80
getNumSnippetsFunction · 0.70
getSampleRateMethod · 0.45
getCallbackNameMethod · 0.45
getNumArgsMethod · 0.45

Tested by

no test coverage detected