Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Java Wrapper Now Working

Date2005-12-11 21:47
FromMichael Gogins
SubjectRe: [Cs-dev] Java Wrapper Now Working
I use directors all the time in CsoundVST and never had a problem. I think we just need to control the symbolic names. Directors are the only way that I know of to automatically implement virtual classes from C/C++ to a SWIG-wrapped language. 

The alternative, I suppose, would be to write 2 layer callbacks by hand. Each callback class would be C on the bottom half and Python or Java on the top half. Then in Python or Java, one could inherit from the top half. This is essentially what the directors are doing (with the addition that the director also inherits from the bottom half in C++, so that all of the function dispatching is completely automatic).

Did you try different module names (psnd for Python csnd, jsnd for Java csnd, etc.)?

Regards,
Mike

-----Original Message-----
From: Istvan Varga 
Sent: Dec 11, 2005 3:31 PM
To: csound-devel@lists.sourceforge.net
Subject: Re: [Cs-dev] Java Wrapper Now Working

On Sunday 11 December 2005 21:06, Michael Gogins wrote:

> I think then that we should have psnd, jsnd, lsnd modules, etc. for Python,
> Java, LISP and if that is not enough, separate shared libraries.
>
> But first, I assume you did delete all .so files and do a complete clean
> and rebuild.

Yes, I did. However, perhaps some other solution than using directors
may be preferred, as the SWIG documentation does mention that it is
experimental.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-12-11 21:52
FromIstvan Varga
SubjectRe: [Cs-dev] Java Wrapper Now Working
AttachmentsNone