| 46 | } |
| 47 | |
| 48 | int 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 | |
| 80 | int CppSound::compile() |
| 81 | { |
no test coverage detected