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

Method processTest

hi_scripting/scripting/scriptnode/api/TestClasses.cpp:431–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429}
430
431void 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
448ScriptNetworkTest::CHandler::RuntimeFunction::RuntimeFunction(DspNetwork* n, const var& f_, int timestamp_) :
449 f(n->getScriptProcessor(), nullptr, f_, 0),

Callers

nothing calls this directly

Calls 4

getNumSamplesMethod · 0.45
containsMethod · 0.45
callSyncMethod · 0.45
processMethod · 0.45

Tested by

no test coverage detected