| On Oct 28, 2005, at 4:49 PM, Istvan Varga wrote:
> you would have
>
> csoundCompile(csound, argc, argv);
> csoundPerform();
>
> This is only slightly more complex, but more flexible, as in the
> first case you cannot re-call csoundPerform() again to continue
> a stopped performance. It also makes it enough to have one "stop"
> function (name anyone ?) that causes csoundPerform() to return
> early.
This seems very similar to running either of Victor's encapsulations of
the csoundlib. In csoundapi~ you have to initiate the compile and
perform components separately. Likewise it is this way in the newly
added cstclsh with the
% csCompile name.csd
and
% csPlay
functions.
I find that working this way would lend itself to integrate much more
easily with any sort of host app and subsequently I would like to
express that I think this is a good idea to implement using "C" in the
main library.
I think it's also important to consider having Csound deallocate all of
it's resources upon early return from csoundPerform(). This includes
but is not limited to PortAudio, PortMIDI, widget thread, etc.
-David
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |