MCPcopy Create free account
hub / github.com/csound/csound / init

Method init

Opcodes/arrayops.cpp:74–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 }
73
74 int init() {
75 csnd::myfltvec &out = outargs.myfltvec_data(0);
76 csnd::myfltvec &in1 = inargs.myfltvec_data(0);
77 csnd::myfltvec &in2 = inargs.myfltvec_data(1);
78 if (UNLIKELY(in2.len() < in1.len()))
79 return csound->init_error(Str_noop("second input array is too short\n"));
80 out.init(csound, in1.len());
81 if (!is_perf()) process(out, in1, in2);
82 return OK;
83 }
84 int kperf() {
85 return process(outargs.myfltvec_data(0), inargs.myfltvec_data(0),
86 inargs.myfltvec_data(1));

Callers

nothing calls this directly

Calls 4

init_errorMethod · 0.80
processFunction · 0.70
lenMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected