<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4134.600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><BR><FONT face=Arial size=2>&gt; When I try to write audio data (as short 
int's) into an array that is<BR>&gt; initialised with 'x-&gt;x_buffer = (short 
*) getzbytes(65536);', pd crashes<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I think the correct allocation is 
<STRONG>getzbytes( 65536*sizeof(short) )</STRONG>.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Otherwise, you might write in some pd's internal 
zones</FONT></DIV>
<DIV><FONT face=Arial size=2>and behaviour becomes undefined.</FONT></DIV>
<DIV><FONT face=Arial size=2>You might have many weird errors after 
that.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>cheers,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Yves/</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>PS : <STRONG>getzbytes </STRONG>is obsolete, you 
should use <STRONG>getbytes</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2>( which is exactly the same 
)/</FONT></DIV></BODY></HTML>