sabapc Posted June 18, 2003 Posted June 18, 2003 If i play a sound (in Java), and i want to play another sound inmediatly after the first finish.. how can i "wait" until the first finish ?Note: I don't know the length of each sound when i'm writing the program so i can't wait a constant like.while(System.currentTimeMillis()<T) ;I need something like:----------------------------AudioClip s1 = .....;AudioClip s2 = .....;...s1.play();...while(s1.isPlaying()) // This method doesn't exist, is there something similar that do exist ? ;s2.play();----------------------------Something like that.Thanks...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now