Playing Sound Repeatedly

My team and I and designing game programs for autisitic children. I thing we are including is background music for each game. The problem we are having is that we do not know how to make the music keep repeating. If anyone has any sample code or knows how to help we would appreciate it very much

[303 byte] By [jeffEclipse] at [2007-9-27 18:44:07]
# 1
You probably should look at JMF. Playing background music is something that needs to be done on its own thread so as not to slow or stop execution of your main program.
smg123 at 2007-7-6 19:56:58 > top of Java-index,Archived Forums,Java Programming...
# 2

private AudioClip sound1; // declaration

init(){

sound1 = getAudioClip (getDocumentBase(),"smooch.au"); //import it

start()

if(command = false) sound1.loop(); // loop the sound inside a thread

Sum-shusSue at 2007-7-6 19:56:58 > top of Java-index,Archived Forums,Java Programming...