D
dtsas
Hello,
I am trying to get wav files out of a JAR file and use them in my
application. I am using the applet method newAudioClip. Everything
seems to work fine, but when I play the audio clip, I don't get any
sound. All the loading seems to work fine since no exceptions are
thrown and the objects are not null. Has anyone experience with
putting WAV's into a JAR?
Here is the code.
URL clickSoundURL = new URL("jar:file://" + dir +
"/jarfilename.jar!/com/sounds/click.wav");
newSound = Applet.newAudioClip(clickSoundURL);
newSound.play();
Thanks,
Dean
I am trying to get wav files out of a JAR file and use them in my
application. I am using the applet method newAudioClip. Everything
seems to work fine, but when I play the audio clip, I don't get any
sound. All the loading seems to work fine since no exceptions are
thrown and the objects are not null. Has anyone experience with
putting WAV's into a JAR?
Here is the code.
URL clickSoundURL = new URL("jar:file://" + dir +
"/jarfilename.jar!/com/sounds/click.wav");
newSound = Applet.newAudioClip(clickSoundURL);
newSound.play();
Thanks,
Dean