Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:5101] Re: New release of CsoundVST for Windows/mingw

Date2004-07-25 23:22
From"gogins@pipeline.com"
Subject[CSOUND-DEV:5101] Re: New release of CsoundVST for Windows/mingw
The length function returns -1 if the table does not exist. Presumably you
check the length of the table before you access it.

Original Message:
-----------------
From: iain duncan iainduncan@telus.net
Date: Sun, 25 Jul 2004 14:20:09 +0000
To: csound-dev@eartha.mills.edu
Subject: [CSOUND-DEV:5100] Re: New release of CsoundVST for Windows/mingw


> * New functions in the Csound and Csound VST APIs for function table
access:
> 
>         /**
>         * Returns the length of a function table.
>         */
>         PUBLIC int csoundTableLength(void *csound, int table);

Nice! Now what will that do if it checks on a non-existant table? Does 
it harmlessly return some value that tells us this table doesn't exist?

>         * Returns the value of a slot in a functon table.
>         */
>         PUBLIC MYFLT csoundTableGet(void *csound, int table, int index);
>         
>         /**
>         * Sets the value of a slot in a function table.
>         */
>         PUBLIC void csoundTableSet(void *csound, int table, int index,
> MYFLT value);

That's awesome. What will happen with these too if the non-existent 
table numbers are given? I would hope it could either a) do nothing or 
b) return a value indicating failure. Is there any reason we could not 
have csoundTableSet return a 1 and 0?

Iain


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .

Date2004-07-26 00:07
From"Josep MComajuncosas"
Subject[CSOUND-DEV:5102] Re: New release of CsoundVST for Windows/mingw
Is it already possible to call a GEN routine from outside Csound and get
the table?
Just curious

Josep M Comajuncosas