Fellow ChucKists,<br><br>I was trying to detect the successful loading of a wave file, hoping that SndBuf.read() wpuld return &quot;true&quot; upon successfully opening a file like when opening a HID device and &quot;false&quot; otherwise.<br>
<br>Instead it turns out that the following code seg-faults.<br><br>SndBuf foo;<br>&lt;&lt;&lt;&quot;kick.wav&quot; =&gt; foo.read&gt;&gt;&gt;;<br><br>Aside from how this means losing the whole VM, which is bad, such functionality would permit for the implementation of search-paths. For example; when a relative location doesn&#39;t work we might want to append the file-name to a string expressing the absolute location of some directory filled with samples.<br>
<br>Yours,<br>Kas.<br>