AudioClip: Sound file format?
I'm using java.applet.AudioClip with getAudioClip because I wanted the buttons in my applet to make sounds when I click on them (like beeping, for example). I wasn't sure which audio file format I should use, so I went with WAV which has been around a while.
If I view my applet on a Mac OS X box with Safari, this works just fine: every time I click on my button, the beep.wav file plays like it should. But if I view the same applet in Firefox 3.6.3 under Linux, the sound plays once, but then will not play unless I restart the applet.
I was wondering if this perhaps had something to do with the audio file format I had chosen. Maybe there is some preferred audio format that is more cross-browser compatible? Or maybe I should be using something other than java.applet.AudioClip? Any helpful thoughts?