<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hi Ji-Sun,<DIV>as fas as i know "valid" in Max/MSP means that the buffer content is not changing at the moment. This has no parallel in PD.</DIV><DIV>Therefore, the flext method buffer-&gt;Valid() will always return true.</DIV><DIV>As discussed with Ico, buffer-&gt;Ok() is the method to check whether a buffer is present, although this is currently only meaningful when instantiating a buffer.</DIV><DIV>You'll have to re-update all your buffers used with buffer-&gt;Set() in CbDsp to keep track of deleted or resized buffer objects - but i'll try to make this transparent for the user in the future.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>greetings,</DIV><DIV>Thomas</DIV><DIV><BR><DIV><DIV>Am 27.03.2007 um 18:48 schrieb Ji-Sun:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"> <DIV class="Section1" style="layout-grid:18.0pt"><P class="MsoNormal"><FONT size="2" face="굴림"><SPAN lang="EN-US" style="font-size:10.0pt;font-family:Gulim">Hello,<O:P></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="굴림"><SPAN lang="EN-US" style="font-size:10.0pt;font-family:Gulim">I am a rookie in PD, and currently developing some externals with flext. <O:P></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="굴림"><SPAN lang="EN-US" style="font-size:10.0pt;font-family:Gulim">In order to check if a buffer is valid in flext, I am using </SPAN></FONT><FONT face="Arial"><SPAN lang="EN-US" style="font-family:Arial">“</SPAN></FONT><FONT face="굴림"><SPAN lang="EN-US" style="font-family:Gulim">Valid</SPAN></FONT><FONT face="Arial"><SPAN lang="EN-US" style="font-family:Arial">”</SPAN></FONT><FONT face="굴림"><SPAN lang="EN-US" style="font-family:Gulim"> function. <O:P></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="굴림"><SPAN lang="EN-US" style="font-size:10.0pt;font-family:Gulim">The </SPAN></FONT><FONT face="Arial"><SPAN lang="EN-US" style="font-family:Arial">“</SPAN></FONT><FONT face="굴림"><SPAN lang="EN-US" style="font-family:Gulim">Valid</SPAN></FONT><FONT face="Arial"><SPAN lang="EN-US" style="font-family:Arial">”</SPAN></FONT><FONT face="굴림"><SPAN lang="EN-US" style="font-family:Gulim"> function uses a Max-dependent structure to check the buffer</SPAN></FONT><FONT face="Arial"><SPAN lang="EN-US" style="font-family:Arial">’</SPAN></FONT><FONT face="굴림"><SPAN lang="EN-US" style="font-family:Gulim">s validation for MAX, but there is nothing for PD.<O:P></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="굴림"><SPAN lang="EN-US" style="font-size:10.0pt;font-family:Gulim"><O:P> </O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="굴림"><SPAN lang="EN-US" style="font-size:10.0pt;font-family:Gulim">MAX/MSP SDK provides a buffer structure, named </SPAN></FONT><FONT face="Arial"><SPAN lang="EN-US" style="font-family:Arial">“</SPAN></FONT><FONT face="굴림"><SPAN lang="EN-US" style="font-family:Gulim">t_buffer</SPAN></FONT><FONT face="Arial"><SPAN lang="EN-US" style="font-family:Arial">”</SPAN></FONT><FONT face="굴림"><SPAN lang="EN-US" style="font-family:Gulim">, and its member variable, </SPAN></FONT><FONT face="Arial"><SPAN lang="EN-US" style="font-family:Arial">“</SPAN></FONT><FONT face="굴림"><SPAN lang="EN-US" style="font-family:Gulim">b_valid</SPAN></FONT><FONT face="Arial"><SPAN lang="EN-US" style="font-family:Arial">”</SPAN></FONT><FONT face="굴림"><SPAN lang="EN-US" style="font-family:Gulim">, has a role to indicate if the buffer is valid.<O:P></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="굴림"><SPAN lang="EN-US" style="font-size:10.0pt;font-family:Gulim">However, I can</SPAN></FONT><FONT face="Arial"><SPAN lang="EN-US" style="font-family:Arial">’</SPAN></FONT><FONT face="굴림"><SPAN lang="EN-US" style="font-family:Gulim">t find anything in PD, regarding that. <O:P></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="굴림"><SPAN lang="EN-US" style="font-size:10.0pt;font-family:Gulim"><O:P> </O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="굴림"><SPAN lang="EN-US" style="font-size:10.0pt;font-family:Gulim">I am wondering if PD library has a function or variable which is similar in MAX/MSP SDK to check whether or not a buffer is valid.<O:P></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="굴림"><SPAN lang="EN-US" style="font-size:10.0pt;font-family:Gulim">If so, I would appreciate if anyone of you let me know it.<O:P></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="굴림"><SPAN lang="EN-US" style="font-size:10.0pt;font-family:Gulim"><O:P> </O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="굴림"><SPAN lang="EN-US" style="font-size:10.0pt;font-family:Gulim">Best regards,<O:P></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="굴림"><SPAN lang="EN-US" style="font-size:10.0pt;font-family:Gulim">Ji-Sun<O:P></O:P></SPAN></FONT></P> </DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">PD-dev mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:PD-dev@iem.at">PD-dev@iem.at</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.puredata.info/listinfo/pd-dev">http://lists.puredata.info/listinfo/pd-dev</A></DIV> </BLOCKQUOTE></DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>Thomas Grill</DIV><DIV><A href="http://grrrr.org">http://grrrr.org</A></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></DIV></BODY></HTML>