Sirs, I have the following code to initialize sounds:
AudioTrack audioTrack = AudioSystem.getSystem().createAudioTrack(url, false);
audioTrack.setType(TrackType.MUSIC);
audioTrack.setTargetVolume(0.7f);
audioTrack.setLooping(false);
And then I have the following code to play those sounds:
audioTrack.play();
Well, the point is that sometimes when animations are running (spatial-transformers move them), and sounds are executed to run-play, they just do not sound! And it seems to be related with animations, because in other case the sounds play well.
Any idea why is this happening and how to correctly play sounds when animations run, without losing sounds?