Csound Csound-dev Csound-tekno Search About

[Cs-dev] API Oddity

Date2009-07-29 08:14
Fromjpff
Subject[Cs-dev] API Oddity
In the JAVA API I find the methods

         int ChanIKSet(double value, int n)

         int ChanOKGet(SWIGTYPE_p_float value, int n)

         int ChanIASet(SWIGTYPE_p_float value, int n)

         int ChanOAGet(SWIGTYPE_p_float value, int n)

Why does this work?  I can understand the need the ChanIKSet but the
rest are unclear.  I assume that ChanOKGet put the read value in the
float at which the value argument points.  But why does ChanIKSet use
a double but only read a float?   In the case of the A methods is the
value of ksmps embedded?  Is this checked?  I am finding this a very
confused.

==John ffitch

------------------------------------------------------------------------------
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