| I am the author of the first C++ API which is now found in the
csound-extended repository as part of the CsoundAC C++ library for
algorithmic composition, in CppSound.hpp. This also includes some
facilities for managing Csound files for the purpose of building up
scores in algorithmic composition.
The next API was begun by Istvan Varga as a header file only library
and is still maintained as such in csound.hpp. This is what the
examples you reference use.
This often is used with the csPerfThread.hpp facility for enabling
Csound to run in a separate thread, but this is not a header file only
library, one must link with the csnd6 library. There is an example of
this in your link.
I have extended the csound.hpp header-file only library to enable
Csound to run in a separate thread without requiring the csnd6
library, and this file is csound_threaded.hpp in the Csound
repository. The behavior is quite similar to csPerfThread. For an
example you can see
https://github.com/gogins/csound-extended/blob/develop/test-examples/cpp/csound_threaded.cpp.
Hope this helps,
Mike
-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com
On Mon, Sep 9, 2019 at 11:32 AM Marco Ippolito wrote:
>
> Hi Mike,
> actually I even didn't know that there are 2 C++ APIs.
> I'm trying to understand the examples here: https://github.com/csound/csoundAPI_examples/tree/master/cpp but I do not know if they all belong to the same C++ API, or to different C++ APIs
>
> Marco
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
> https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |