I have a sound of a jet engine firing up. Obviously I only want that sound to play once and then the rest of the time I want the sound of the jet after it has been going for a while. So my question is how do I play the sound once and then change it to get it to playing something else? Hope this makes sense. Here is my code for the little sound part.
AudioSystem audio = AudioSystem.getSystem();
audio.getEar().trackOrientation(cam);
audio.getEar().trackPosition(cam);
engineSound = audio.createAudioTrack( JetDemo.class.getResource( "/data/sound/enginestarting.wav" ), false);;
engineSound.setMaxAudibleDistance(1000);
engineSound.setVolume(1.0f);
engineSound.