Make passthru actually pass the signal thru.

main
Ben Niemann 1 year ago
parent 2ab4c6ea1b
commit aca7206aeb

@ -35,6 +35,13 @@ PassthruNode::PassthruNode(EngineImpl* engine, uint64_t id)
: ProcessorNode(engine, id, "noisicaa.node_lib.passthru") {}
Status PassthruNode::run(BlockContext* ctxt, const std::vector<Buffer*>* buffers) {
float* in = (float*)buffers->at(0)->data();
float* out = (float*)buffers->at(1)->data();
for (uint32_t smpl = 0 ; smpl < ctxt->block_size ; ++smpl) {
*out++ = *in++;
}
return Status::Ok();
}

Loading…
Cancel
Save