Csound Csound-dev Csound-tekno Search About

[Cs-dev] Using channels from Java API

Date2006-07-13 16:49
FromJohn ffitch
Subject[Cs-dev] Using channels from Java API
First James says thank you to Istvan and the others who have helped.
He is having a little trouble posting to teh list at present so I am
passing this on.

------------------------------------------------------------------------
I'm having a problem compiling the example that Istvan kindly gave,
although it demonstrates the process very well.

The return from CsoundMYFLTArray.GetPtr() is of type
SWIGTYPE_p_p_double, whereas the first arg of Csound.GetChannelPtr
takes SWIGTYPE_p_double. Apologies if I'm missing something obvious:

(in ChnTestA.java , lines c19:26)
//get pointers to bus channels
err = csound.GetChannelPtr(inChn.GetPtr(), "a_input",
                    csndConstants.CSOUND_AUDIO_CHANNEL
                    | csndConstants.CSOUND_INPUT_CHANNEL );

err |= csound.GetChannelPtr(outChn.GetPtr(), "a_output",
                    csndConstants.CSOUND_AUDIO_CHANNEL
                    | csndConstants.CSOUND_OUTPUT_CHANNEL);

Compiling gives error for both statements:

The method GetChannelPtr(SWIGTYPE_p_double, String, int) in the type
Csound is not applicable for the arguments (SWIGTYPE_p_p_double,
String, int).

James



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net