Csound Csound-dev Csound-tekno Search About

[Cs-dev] Csound API -- modules

Date2005-02-05 17:44
From"gogins@pipeline.com"
Subject[Cs-dev] Csound API -- modules
I've restored the behavior of the Csound API such that it can be used to
stop and restart a single instance of Csound.

To do this, I moved Istvan Varga's module loading and unloading calls from
the csoundCreate/csoundDestroy scope, to the csoundCompile/csoundCleanup
scope.

I left csoundReset out of csoundCompile, in order to preserve Istvan's
design of enabling API hosts to change configuration settings before
calling csoundCompile.

Consequently, clients of the API must now do this:

csoundReset
csoundCompile
csoundPerform

not just this:

csoundCompile
csoundPerform

I've changed csound_main.cpp and CsoundVST.cpp accordingly.

This seems to work very well on Windows. I haven't tested yet on Linux, but
I can do that Monday or Tuesday.

Istvan, please let me know if this creates any problems for you.

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-05 18:02
FromIstvan Varga
SubjectRe: [Cs-dev] Csound API -- modules
gogins@pipeline.com wrote:

> Consequently, clients of the API must now do this:
> 
> csoundReset
> csoundCompile
> csoundPerform

If clients need to be changed, we might just as well do:

   csoundInitialize
   csoundCompile
   csoundPerform

Where csoundInitialize would contain (among others) code that you
have removed from csoundCreate, and, of course csoundReset.

> Istvan, please let me know if this creates any problems for you.

With your changes, the current CVS sources do not compile. However,
as long as you agree with the csoundInitialize idea (suggestions on
a better name ?), I can fix things myself.


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net