I was reviving and old game I did in 2002, which worked fine at the time. Since then Sun has somehow managed to break Java Sound.
When my character moves around, and a sound is played for each move made, the animation starts to stutter. I have created a simple example that exhibit the same behaviour:
http://matzon.dk/brian/Random%20Junk/SoundTest.zip
Extract and run like this:
[quote]java -cp bin;res SoundTest
[/quote]
It works fine in 1.3 (except the Thread exit bug which was first fixed in 1.5).
1.4 Stutters, and sounds different
1.5 is just as crappy - and required me to FORCE usage of the software implementation since their default implementation sucks, and only plays some of the sounds it sees fit.
I have tried to switch to .au files (using sun.audio.AudioPlayer) - and performance is WAY better - no stutter at all. However this implementation produces some serious artifacts in the stream (clicks and pops).
Could someone please explain to me how people have used Java Sound since 1.3 ??
Or am i misusing the clip interface?