Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Another Build Error

Date2005-10-24 17:01
FromMichael Gogins
SubjectRe: [Cs-dev] Another Build Error
You are correct about _csnd containing much of the functionality of _CsoundVST.

However, I am not so sure about CppSound (the C++ interface). The C++ interface is more convenient for users, and also makes a good basis for Python, Java, Lua, etc. interfaces in other object-oriented languages, but of course it needs to be maintained in parallel with the "C" Csound API. The current CppSound.hpp is woefully out of date with respect to csound.h, cfgvar.h, etc.

This was one reason that I suggested making the CSOUND struct into a first-order C++ class. But then of course the situation would merely be reversed, with a "C" API needing to be kept up to date with the native C++ class. So I don't think that's really an improvement regarding the external API as such (Microsoft C++ has tools for this based on COM IDL, but not gcc). Of course, it would simplify the maintainance and development of Csound itself!

I am leaning towards just dropping the C++ API entirely and changing _CsoundVST to use the C API only. If I do that, I will add to the filebuilding API functions for not only writing, but also reading and parsing, Csound files.

I would be nice if there were a tool to read a "C" header file with the pattern of taking a struct as first argument and automatically generating the corresponding C++ class.

Regards,
Mike

-----Original Message-----
From: Istvan Varga 
Sent: Oct 24, 2005 11:36 AM
To: csound-devel@lists.sourceforge.net
Subject: Re: [Cs-dev] Another Build Error

Michael Gogins wrote:

> I plan to make _csnd be the "base module" and to have _CsoundVST
 > "inherit" from it, in which case the swigpy stuff should be removed
 > from _CsoundVST and added to _csnd.

I assume _csnd will eventually contain much of the functionality of
_CsoundVST, such as the CppSound interface, but not any of the code
related to the actual CsoundVST GUI ?


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel





-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-10-24 17:18
FromSteven Yi
SubjectRe: [Cs-dev] Another Build Error
AttachmentsNone