Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


AudioClip doesn't work in applet?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 Patriarch K   Members   -  Reputation: 212

Like
0Likes
Like

Posted 25 December 2012 - 06:26 AM

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);
}

kaboomsSound.play();

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, 25 December 2012 - 06:36 AM.


Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS