| I’ve answered in Github, but I copy it here
No, memory is managed by Csound. See the example code:
int main(int argc, char *argv[]) {
CSOUND *csound = csoundCreate(NULL);
csoundSetOption(csound, "-odac");
csoundCompileOrc(csound, "i1 ftgen 1,0,1024,10,1,0.5 \n instr 1 \n a1 oscili 1,1,1 \n endin \n");
MYFLT *args;
int n;
csoundStart(csound);
n = csoundGetTableArgs(csound, &args, 1);
printf("%d \n", n);
while(n-- > 0){
printf("arg[%d] = %f \n", n, args[n]);
}
csoundDestroy(csound);
return 0;
}
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie
On 24 Jul 2014, at 19:25, Rory Walsh wrote:
> Thanks Victor, that works fine.
>
>
> On 24 July 2014 16:42, Rory Walsh wrote:
>> Hi Victor, I just now noticed that you added this function in response
>> to my pull request. Thanks for that. I'll get a chance later to try
>> this out. I'll let you know if I have any problem. Actually, Andres
>> asked "how should memory be handled here? Should the caller free the
>> memory, or not worry about it?"
>
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |