Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

AudioClip doesn't work in applet?

4: Adsense

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   

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.





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.