Make sure you typed this declaration correctly:

SWIGTYPE_p_p_float myptr = myfltarray.GetPtr();

(and not
SWIGTYPE_p_float myptr = myfltarray.GetPtr();
)

Victor

----- Original Message -----
From: peiman <peimankhosravi@gmail.com>
Date: Saturday, August 15, 2009 3:06 pm
Subject: [Cs-dev]  java newbie and csound api - compile error
To: csound-devel@lists.sourceforge.net

>
> Hello,
>
> I am for the first time trying to get my head around java and
> csoundapi. I
> am trying to compile and run the SliderDemo.java mentioned in
> James Hearon's
> article
> (http://www.csounds.com/journal/2006summer/SliderDemo.html). However
> I am getting 2 errors (see bellow) that prevent the .java file from
> compiling. My platform is osx leopard and I have the lates
> version of csound
> installed. Any help would be very much appreciated.
>
> Many Thanks
> Peiman  
>
> peiman-khosravis-macbook-pro:SliderDemo peimankh$ javac
> SliderDemo.javaSliderDemo.java:180:
> GetChannelPtr(csnd.SWIGTYPE_p_float,java.lang.String,int) in
> csnd.Csoundcannot be applied to
> (csnd.SWIGTYPE_p_p_float,java.lang.String,int)                                         if(csound.GetChannelPtr(myfltarray.GetPtr(), "pitch", 
>                                                   ^
> SliderDemo.java:217:
> GetChannelPtr(csnd.SWIGTYPE_p_float,java.lang.String,int) in
> csnd.Csoundcannot be applied to
> (csnd.SWIGTYPE_p_p_float,java.lang.String,int)                                                 if(csound.GetChannelPtr(myfltarray.GetPtr(), "pitch", 
>                                                                  ^
> 2 errors
>  
> --
> View this message in context: http://www.nabble.com/java-newbie-
> and-csound-api---compile-error-tp24984903p24984903.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
>
> -----------------------------------------------------------------
> -------------
> 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