Csound Csound-dev Csound-tekno Search About

[Cs-dev] Broken re-entrancy

Date2005-02-05 17:13
From"gogins@pipeline.com"
Subject[Cs-dev] Broken re-entrancy
Istvan Varga's recent changes have broken the Csound API. The API is used
like this:

csound = csoundCreate()
// Call csoundCompile and csoundPerform any number of times
csoundCompile(csound)
csoundPerform(csound)
// You can manually stop and restart a performance.
csoundStop()
csoundPerform(csound)
csoundCompile(csound)
csoundPerform(csound)
csoundCompile(csound)
csoundPerform(csound)
// Finally, destroy the Csound instance.
csoundDestroy(csound)

After Istvan's changes, only this works:

csound = csoundCreate()
csoundCompile(csound)
csoundPerform(csound)
csoundDestroy(csound)

Only one compile/perform cycle can be done; to do another one it is
necessary to call csoundCreate again.

This makes the API unusable to make a VST plugin (the host is always
stopping and restarting Csound) and more difficult to use as a Python
extension module.

I am trying to fix these problems, but it's possible that I will break
something else in what Istvan has done.




--------------------------------------------------------------------
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