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