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

Alexandros Drymonitis adrcki at gmail.com
Sun Sep 14 12:19:16 CEST 2014

But this is set to 64...if I want to use a different block size? I guess it
would work by making a comparison test in each dsp cycle and reset the

On Sun, Sep 14, 2014 at 1:16 PM, Kjetil Matheussen <k.s.matheussen at gmail.com
> wrote:

> 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...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20140914/10345f10/attachment.html>

More information about the Pd-dev mailing list