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

Method init

examples/plugin/opcodes.cpp:69–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 */
68struct SimpleArray : csnd::Plugin<1, 1> {
69 int init() {
70 csnd::Vector<MYFLT> &out = outargs.vector_data<MYFLT>(0);
71 csnd::Vector<MYFLT> &in = inargs.vector_data<MYFLT>(0);
72 out.init(csound, in.len());
73 csound->plugin_deinit(this);
74 return OK;
75 }
76
77 int deinit() {
78 /** nothing to do, just announce itself */

Callers

nothing calls this directly

Calls 3

plugin_deinitMethod · 0.80
initMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected