Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] GetChannelPtr

Date2007-01-27 19:24
FromVictor Lazzarini
SubjectRe: [Cs-dev] GetChannelPtr
In Java, I would expect that manipulating C pointers
might be tricky. The differences you point out are
created by the wrapper. I don't know whether it wraps
it OK and the code actually works.

Can't the job be done with Csound::GetChannel() and
Csound::SetChannel()?

Except for audio channels, the two methods above are
more handy in wrapped languages.

Victor


>
>
>
> Sorry to post here.  I usually just read, but need some
> info on  GetChannelPtr. I am trying to help casey,
> cm@caseymongoven.com, with Java  gui problem using Csound
> bus.
>
> my 5.03 build shows:
>
> public int GetChannelPtr(SWIGTYPE_p_p_float p, String name
> , int type) {
>     return csndJNI.Csound_GetChannelPtr(swigCPtr,
> SWIGTYPE_p_p_float.getCPtr(p), name, type);
>   }
>
> but my 5.04 build shows:
>   public int GetChannelPtr(SWIGTYPE_p_float p, String name
> , int type) {
>     return csndJNI.Csound_GetChannelPtr(swigCPtr, this,
> SWIGTYPE_p_float.getCPtr(p), name, type);
>   }
>
> and throws problematic frame error in lib
> [_jcsound.dll+0xba91]
>
> Seems like api hasn't changed (csound.h) for the
> GetChannelPtr method.
>
> Wondering what may be causing changes to Swig generated
> java wrappers? -----------
> Also may be somewhat related to this problem, I noticed in
> 5.03 I could use CsoundMYFLTArray.GetPtr(), but in 5.04
> now have to use  CsoundMYFLTArray.GetPtr(1), the int indx
> version that method parameter to  make it work.
> -----------
> May not necessarily be differences in 5.03 or 5.04 but
> interested to know if  anyone recalls working in the area
> with GetPtr?
>
> Thanks.
>
> __________________________________________________________
> _______ Get in the mood for Valentine's Day. View photos,
> recipes and more on your  Live.com page.
>
http://www.live.com/?addTemplate=ValentinesDay&ocid=T001MSN30A0701
>
>
> ----------------------------------------------------------
> --------------- Take Surveys. Earn Cash. Influence the
> Future of IT Join SourceForge.net's Techsay panel and
> you'll get the chance to share your opinions on IT &
> business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net