Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Java Wrapper Now Working

Date2005-12-07 14:58
FromMichael Gogins
SubjectRe: [Cs-dev] Java Wrapper Now Working
Further to this, more thought says templates are not required. We just need an empty C++ callback class for each Csound API callback function signature, and we wrap it with SWIG "director" classes. Every language that supports directors (currently, Python and Java) will then allow the callback class to be subclassed in the language. The class will have a member function that directly returns the static actual callback function.

Regards,
Mike

-----Original Message-----
From: Michael Gogins 
Sent: Dec 7, 2005 9:52 AM
To: csound-devel@lists.sourceforge.net
Subject: Re: [Cs-dev] Java Wrapper Now Working

Thanks for these changes.

About the callbacks, I wonder if some C++ template metaprogramming might not give us a way to code up a bunch of generic callback functors, e.g., a Python-wrapped C++ class with a C callback, such that the class can be subclassed in Python to handle the callback.

Regards,
Mike

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

On Wednesday 07 December 2005 04:18, Steven Yi wrote:

> Not sure exactly what changed but looked like Istvan did some work on
> these and I'm happy to say that for the first time I have csnd.jar
> working on my computer. =)  I tried Victor's CSDPlayer.jar and that is
> now working well.

Actually, the problem with having to run scons twice to build csnd.jar
is still there. What may be an improvement is the addition of
-fno-strict-aliasing to the compiler flags for the *_wrap.cc files;
if previously you always got a segmentation fault when trying to use
classes from csnd, that may be the case.
Also, I added a few (rather ugly) glue functions for polling messages
(eliminating the need for a message callback that is not possible in
Python, Java, etc.), creating argc/argv lists, pointers to MYFLT arrays
(for use with csoundGetChannelPtr() and other functions), and using
opcode and channel lists. This area probably still needs to be improved.


-------------------------------------------------------
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
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 16:13
FromIstvan Varga
SubjectRe: [Cs-dev] Java Wrapper Now Working
AttachmentsNone