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.






