| 1538 | |
| 1539 | |
| 1540 | void 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 | |
| 1553 | JavascriptProcessor::SnippetDocument * JavascriptProcessor::getSnippet(const Identifier& id) |
nothing calls this directly
no test coverage detected