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

Method compile

interfaces/CppSound.cpp:48–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48int CppSound::compile(int argc, const char **argv_)
49{
50 Message("BEGAN CppSound::compile(%d, %p)...\n", argc, argv_);
51 int returnValue = 0;
52 go = false;
53 csound->orcname_mode = 1;
54 // Changed to use only internally stored Csound orchestra and score.
55 returnValue = csoundCompileOrc(csound, getOrchestra().c_str());
56 returnValue = csoundReadScore(csound, getScore().c_str());
57 for (int i = 0; (size_t) i < argv.size(); ++i) {
58 Message("arg %3d: %s\n", i, argv[i]);
59 csoundSetOption(csound, argv[i]);
60 }
61 returnValue = csoundStart(csound);
62 spoutSize = GetKsmps() * GetNchnls() * sizeof(MYFLT);
63 if(returnValue)
64 {
65 isCompiled = false;
66 }
67 else
68 {
69 const char *outfilename = GetOutputName();
70 if (outfilename) {
71 renderedSoundfile = outfilename;
72 }
73 isCompiled = true;
74 go = true;
75 }
76 Message("ENDED CppSound::compile.\n");
77 return returnValue;
78}
79
80int CppSound::compile()
81{

Callers 4

initFunction · 0.80
loadStaticWasmFunction · 0.80
module.jsFile · 0.80
module.jsFile · 0.80

Calls 10

scatterArgsFunction · 0.85
compileFunction · 0.85
MessageFunction · 0.50
csoundCompileOrcFunction · 0.50
csoundReadScoreFunction · 0.50
csoundSetOptionFunction · 0.50
csoundStartFunction · 0.50
GetKsmpsFunction · 0.50
GetNchnlsFunction · 0.50
GetOutputNameFunction · 0.50

Tested by

no test coverage detected