I am trying to loop the sound in this code. In the finally block of the main try and catch I do this :
if (loop) {
auline.flush();
run();
} else {
ended=true;
auline.drain();
auline.close();
}
but it causes a stackoverflow. How can I safely loop this sound without creating a new instance of it?