Silvester;<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
do you hear the click in the resulting tmp.wav? If not, then the problem is with reading a file between samples. If yes, then the abrupt sample change may play a role, too.<br><br></blockquote><div><br>I should clarify that ChucK doesn&#39;t need to calculate one sample per samp. If that were the case then I think any non-trivial file-loading would cause issues, which is of course untrue.<br>
<br>ChucK doesn&#39;t hand values to the soundcard one by one, instead it does so in blocks of tens, hundreds or thousands of samples (always a power of 2). The thing that needs to be done is calculate -say- 512 samples in a duration of 512::samp so assuming there is no heavy processing going on we can deal with any peaks in cpu usage by increasing the block size by enough.<br>
<br>Timing-wise the loading still occurs &quot;in between samples&quot; but then again; so does all our other code.<br><br>I hope that clarifies things a bit. Shout if I misunderstood you.<br><br>Yours,<br>Kas.<br></div></div>