How to check if an audio clip is finished
Hello
Currently I have the following code :
java.applet.AudioClip sound =null;
try
{
String userdir= System.getProperties().getProperty("user.dir") ;
java.io.File myfile =new java.io.File(userdir+audiofile);
java.net.URL url = myfile.toURL();
sound = java.applet.Applet.newAudioClip(url);
sound.play();
}
catch (Exception io){/* ignore */}
/* continue to work while music is playing */
--
--
It works fine, however, I'd like to check in another thread whether this clip is over. Is there any way to do this ?

