Jump to content
  • Advertisement
Sign in to follow this  
encom

[java] AudioClip pb

This topic is 4740 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm using AudioClip to play a sound. I have a pb : i dont know how to make play() blockant. clip = Applet.newAudioClip(new URL("file", "localhost", fileName_1)); clip.play(); clip = Applet.newAudioClip(new URL("file", "localhost", fileName_2)); clip.play(); it only plays de second one. I want it to play the first THEN the second. How could i do ?

Share this post


Link to post
Share on other sites
Advertisement
Not that it helps you out, but this seems to be contradicting its specification:

Multiple AudioClip items can be playing at the same time, and the resulting sound is mixed together
to produce a composite.


Note that AudioClip is basically the most simple as it gets. Perhaps have a look at javax.sound.sampled.Clip, which allows you to check whether a sound is currently playing.

Greetz,

Illco

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!