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

Method init

examples/plugin/opcodes.cpp:197–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195 static constexpr char const *itypes = "fk";
196
197 int init() {
198 if (inargs.fsig_data(0).isSliding())
199 return csound->init_error("sliding not supported");
200
201 if (inargs.fsig_data(0).fsig_format() != csnd::fsig_format::pvs &&
202 inargs.fsig_data(0).fsig_format() != csnd::fsig_format::polar)
203 return csound->init_error("fsig format not supported");
204
205 csnd::Fsig &fout = outargs.fsig_data(0);
206 fout.init(csound, inargs.fsig_data(0));
207 framecount = 0;
208 return OK;
209 }
210
211 int kperf() {
212 csnd::pv_frame &fin = inargs.fsig_data(0);

Callers

nothing calls this directly

Calls 4

isSlidingMethod · 0.80
init_errorMethod · 0.80
fsig_formatMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected