<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 id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi guys,</p>
<p><br>
</p>
<p>I downloaded stk4.5.0, I found the demo in projects folder and modified the main() function in demo.cpp into a normal function. So that I can call the function by this two lines:</p>
<p><br>
</p>
<p>char *argv1[] = { "de", "Rhodey", "-or", "-if", "D:\\bookert.ski" };</p>
<p><span class="Apple-tab-span" style="white-space:pre"></span>demo(5, argv1);</p>
<p><br>
</p>
<p>IT is OK if I just call the function once. But it plays only one time if I call the function in a loop like below:</p>
<p><br>
</p>
<p>while(1){</p>
<p>char *argv1[] = { "de", "Rhodey", "-or", "-if", "D:\\bookert.ski" };</p>
<p><span class="Apple-tab-span" style="white-space: pre;"></span>demo(5, argv1);</p>
<p>}</p>
<p><br>
</p>
<p>I just want it to play a song again and again. Please help me figure out how I can do it, Thanks!</p>
<p><br>
</p>
<p><br>
</p>
<p>Frank</p>
</div>
</body>
</html>