AFAIK you would use something like this
csound.GetChannelPtr(myfltarray.GetPtr(), "audio", ...)
where ... will be CSOUND_INPUT_CHANNEL | CSOUND_AUDIO_CHANNEL
but I don't know how to do bitwise or in Java.
Vicgtor
----- Original Message -----
From: jpff@cs.bath.ac.uk
Date: Friday, August 21, 2009 3:21 pm
Subject: [Cs-dev] Still seeking help on Java/Csound
To: csound-devel@lists.sourceforge.net
> I do not kbnow who to ask...
>
> Currently our Java code says ....
>
> SWIGTYPE_p_double audio=null;
> ....
> csound.GetChannelPtr(audio, "audio", 0); // also
> tried 2 and 34
> and at this point the value of audio is not set ro anything and
> so we fail
>
> I am guessing that to read the data I need
>
> CsoundMYFLTArray x;
> x.SetValues(0, bufSize, audio);
> and write with
> x.GetValues(0, bufSize, audio);
> but at present I cannot get the pointer. What am I doing wrong?
>
> ==John
>
>
> -----------------------------------------------------------------
> -------------
> Let Crystal Reports handle the reporting - Free Crystal Reports
> 2008 30-Day
> trial. Simplify your report design, integration and deployment -
> and focus on
> what you do best, core application coding. Discover what's new
> with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
National University of Ireland, Maynooth