Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Interfaces building

Date2007-08-17 02:38
From"Michael Gogins"
SubjectRe: [Cs-dev] Interfaces building
>
> Hmm... it seems I got it wrong: the interface library is for both lua and
> python? I thought there was one for lua and one for python.
>
> -- 
>
>  Felipe Sateler


For Python: _csnd.pyd contains the actual wrapper code, it links with 
csnd.so, which contains the Lua wrapper code as well as the C++ interface to 
Csound, which links with csound64.dll.5.1 which contains the C interface to 
Csound and the actual Csound implementation.

There are naming conventions involved. In Python, 'import XXX' means "import 
XXX.py" and/or dlopen _XXX.pyd.

In Lua, 'require("XXX")' or just 'require "XXX"' means read "XXX.lua" and/or 
dlopen XXX.so.

I can just change csnd.so to py_csnd.so, since it is explicitly linked with 
_csnd.pyd, and that way I keep csnd.so which now will only contain the Lua 
wrapper code. Both may also explicitly link with a new cpp_csnd.so which 
will contain the C++ interface to Csound. This way Python, Java, and Lua can 
all use an extension named "csnd."

Regards,
Mike 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net