[PD-dev] dynamically allocate memory for object structure component

Alexandros Drymonitis adrcki at gmail.com
Sun Sep 14 11:16:29 CEST 2014


I writing an external where I want to declare some arrays in the object
structure which will have the size of the block size. I want to allocate
memory using malloc with a variable that gets the block size. I know it's
possible to get the sample rate with sys_getsr(); which can be used in the
new instance routine. Is there something similar that gives you the block
size?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20140914/ec1499cb/attachment.html>


More information about the Pd-dev mailing list