diff options
author | James <olpc@localhost.localdomain> | 2007-01-21 00:55:31 (GMT) |
---|---|---|
committer | James <olpc@localhost.localdomain> | 2007-01-21 00:55:31 (GMT) |
commit | 9681773634dd158c99864d3ff1bc9f4b07120556 (patch) | |
tree | 96d96e8684faea119894245c8ea96288f4b6e929 /Util/Clooper | |
parent | f5b5e5460c8f434e45c5a5b4303992367e47b019 (diff) |
m
Diffstat (limited to 'Util/Clooper')
-rw-r--r-- | Util/Clooper/cmd_csound.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Util/Clooper/cmd_csound.c b/Util/Clooper/cmd_csound.c index 430ea17..90a522b 100644 --- a/Util/Clooper/cmd_csound.c +++ b/Util/Clooper/cmd_csound.c @@ -1,3 +1,19 @@ #include <stdio.h> #include "csound.hpp" + +int main( int argc, char ** argv) +{ + CSOUND * csound = csoundCreate(0); + csoundInitialize(&argc, &argv, 0); + + int rval = csoundCompile(csound, argc, argv); + + if (!rval) + { + while (csoundPerformKsmps(csound) == 0) + ; + } + csoundDestroy(csound); + return rval; +} |