So, i took a look at my game engine's sound utilities, as i've had a lot of bug reports on this in particular.
It seems the world is entirely different once you change from mixer to mixer. This ofcourse makes it almost impossible to make something cross-platform as each system has it's own mixer. Yet, it seems that all have the mixer called Java Sound Audio Engine, so i made it possible to select a mixer in my program and started to test...
On my windows vista machine i got a fatal error that crashed the entire jvm.
It did however get even worse on my friend's apple mac laptop. Here it not only crashed, but it crashed with a segmentation error!
I tested a could of times on my windows vista machine and here it seemed that calls to drain sometimes would start an infinite loop, draining the cpu rather than my SourceDataLine
It also seemed that the LineListener i added didn't always get the update calls i'd expect.
Right now i have the feeling that the java sound api is some kind of joke as long as there aren't atleast one proper mixer available on all systems...
The only possitive thing i can say is that i actually got sound playing on all systems, before they eventual crashed.
So my question is, how do i get crossplatform audio in my games, preferably using the standard java API?
If more information is needed about my system, setup and code, please let me know and i'll try to supply it :-)