| 429 | } |
| 430 | |
| 431 | void ScriptNetworkTest::CHandler::processTest(ProcessDataDyn& data) |
| 432 | { |
| 433 | Range<int> timestampRange(currentTimestamp, currentTimestamp + data.getNumSamples()); |
| 434 | |
| 435 | for (auto f : runtimeFunctions) |
| 436 | { |
| 437 | if (timestampRange.contains(f->timestamp)) |
| 438 | { |
| 439 | f->f.callSync(nullptr, 0); |
| 440 | } |
| 441 | } |
| 442 | |
| 443 | ScriptnodeCompileHandlerBase::processTest(data); |
| 444 | |
| 445 | currentTimestamp += data.getNumSamples(); |
| 446 | } |
| 447 | |
| 448 | ScriptNetworkTest::CHandler::RuntimeFunction::RuntimeFunction(DspNetwork* n, const var& f_, int timestamp_) : |
| 449 | f(n->getScriptProcessor(), nullptr, f_, 0), |
nothing calls this directly
no test coverage detected