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

Kjetil Matheussen k.s.matheussen at gmail.com
Sun Sep 14 12:16:36 CEST 2014


On 9/14/14, Alexandros Drymonitis <adrcki at gmail.com> wrote:
> 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?
>

I guess it's safe to use DEFDACBLKSIZE from s_stuff.h...



More information about the Pd-dev mailing list