Jump to content
  • Advertisement
Sign in to follow this  
Patriarch K

AudioClip doesn't work in applet?

This topic is 2127 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

I'm so frustated at the moment so I start this thread as well. I've got problems when I'm converting a java application to an applet. In my application my code looks like this:

URL kabooms = null;
AudioClip kaboomsSound;

and in the constructor:

try {
kabooms = new URL("file:img\\kabooms.wav");
catch (MalformedURLException exp) {
kaboomsSound = Applet.newAudioClip(kabooms);


This works perfectly fine for me. But when I try to use it in my applet it fails big time. I get no sound however i try. Can you see something wrong with this method? Edited by Patriarch K

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!