Fellow ChucKists,<br><br>I was trying to detect the successful loading of a wave file, hoping that SndBuf.read() wpuld return "true" upon successfully opening a file like when opening a HID device and "false" otherwise.<br>
<br>Instead it turns out that the following code seg-faults.<br><br>SndBuf foo;<br><<<"kick.wav" => foo.read>>>;<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'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>