Vote count:
0
I created an applet for the game I created in Java. In the browser, it works perfectly fine without the audio, but is blank with it.
In NetBeans it runs fine with or without it. Please check out the link below.
This is an example of how I am implementing the audio. I'm using AudioInputStream, AudioSystem and Clip from javax.sound.sampled.
try {
Clip clipFireball = AudioSystem.getClip();
AISFireball = AudioSystem.getAudioInputStream(getClass().getResource("/Fireball.wav"));
clipFireball.open(AISFireball);
clipFireball.start();
} catch (IOException | LineUnavailableException | UnsupportedAudioFileException ex) {
}
Any ideas as to why the audio alone is causing the applet to not work?
asked 26 secs ago
Applet Only Works WITHOUT Audio
Aucun commentaire:
Enregistrer un commentaire