[PD] trouble writing external

Yves Degoyon ydegoyon at free.fr
Sun Nov 25 03:10:16 CET 2001



> When I try to write audio data (as short int's) into an array that is
> initialised with 'x->x_buffer = (short *) getzbytes(65536);', pd crashes

hi,

I think the correct allocation is getzbytes( 65536*sizeof(short) ).

Otherwise, you might write in some pd's internal zones
and behaviour becomes undefined.
You might have many weird errors after that.

cheers,

Yves/

PS : getzbytes is obsolete, you should use getbytes
( which is exactly the same )/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20011125/d944bc4f/attachment.htm>


More information about the Pd-list mailing list