<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
In my attempt to loop-play 1 portion of the soundbuffer for a certain periode time(2000 milliseconds in my example) i get a kind of clicking when the geginning of the sample pos is different from the ending..</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Maybe .loop and .interp of SndBuf is a solution here. Anyone who knows how to use them?&nbsp;</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Kind regards,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Herman</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>me.sourceDir() &#43; &quot;aeiou.wav&quot; =&gt; string filename;<br>
</span>
<div>if( me.args() ) me.arg(0) =&gt; filename;<br>
</div>
<div>SndBuf buf =&gt; dac;<br>
</div>
<div>filename =&gt; buf.read;<br>
</div>
<div><br>
</div>
<div>fun void looper()</div>
<div>{<br>
</div>
<div>while(true)</div>
<div>{<br>
</div>
<div>1500::samp =&gt; now;<br>
</div>
<div>50000 =&gt; buf.pos;<br>
</div>
<div>}}</div>
<div>spork ~ looper();<br>
</div>
<div><br>
</div>
<span>2000::ms =&gt; now;</span><br>
</div>
</body>
</html>