Fast way to play sounds

Well I’m talking about sound effects in a battle…
currently I’m using OpenOgg (OggClip) for sounds and JLayer(Player) for music.

is JLayer capable of playing .wav ? if not should I convert and use JLayer for sound effects.

what other possibilities are there ?
AudioClip is crap I think…
And well normal clips, I don’t know

Hi
I think so, too.
Audioclip isn´t even able to pause or to
tell how much of a sound has been played/is to be played.
I need an easy way for playing music/sounds in my game
as well and if in any way possible with just
the java SDK from sun.
I wouldn´t mind to play .wav-files, .mp3 is not necessary.
I just want to play, pause and stop the sound
and a method for knowing which microsecond position
of the sound is actually played when calling it.
I know its possible with midi coded directly
with Synth. etc.
This has to be possible with files as well.

I hope someone has a little tutorial or knows how to
do it.
Thanks :slight_smile:

It is possible to know the frame position when using a Clip instance. When you call stop() on a clip, if you call loop(1) after that, Java will resume where the sound had been stopped.