It works under 1.5 now. Well done! However, sounds seem to have vanished after some turns, but that's maybe caused by the broken sound support of 1.5. They optimized the sound system by using DirectSound hardware mixing but they obviously did a bad job. The only way to handle this, is to explicitly ask for a software mixer (like 1.4 was using it anyway).
Thanks for the tip. It was "the missing part" of the 1.5 sound issue
The problem seem to be in DirectSound mixer initialization. Applet seem to close DirectSound Mixer if no sounds are playing, and it reopens/reinits it every time when new audio is about to be played, and causing sounds to "jam" for about 0.5 sec at start.
Seems very odd of Sun, but on software mixer the problem is not reproduced (as you described).
the workaround was to:
- loop() some audio file (silence.au) on Applet's start()
- do stuff (mixer is opened, so sound is no longer jammed)
- stop() audio loop on Applet's destroy()
It works for me.