Admittedly not the cleanest solution... I've implemented this a little more nicely in Slick's Sound
Well for me it's sufficient!!! It's not a code that should need to be improved or portable to much
I suppose the code you post is more or less the same that is inside AudioImpl
, and what the release method of the Sound class calls, I'm right?