Hello,<br><br>if nobody has any idea: The better way would be to "hold" the deviceĀ until the loop is finished. Any advice?<br><br>_func(...)<br>{<br>...<br>RtAudio dac; // constructor<br>dac.openStream();<br>dac.closeStream();<br>return;<br>}<br><br>Regards<br>Thomas