mp3s, or something smaller than wav

I’m trying to play a song that’s about 10 minutes long during a game, but the problem with .wav files is that they’re too big. Is there a way to play mp3s, or something that’s smaller than wav?

You might want to check out http://www.jcraft.com/jorbis/
Ogg Vorbis is a FREE format, (i.e., no licensing restrictions like MP3) and there is a library (JOrbis) that you can use to play .ogg files.

From what I can gather the equivalent sized .ogg is much better sound quality than .mp3, or if you want, the same quality compresses more with .ogg than with .mp3 files.

Good luck.

oh, good, i look for it a long ago. ;D

Hi, ;D

im using the Java Layer lib in my Mp3 Player Project. It is easy to use.

Take a look at www.javazoom.com

Are there any numbers on how much CPU time those two player systems (Jorbis and the Mp3 one) use?

If this is too high because you need any other Java VM cycle you can get (:slight_smile: maybe it’s possible to unpack the Mp3 or Ogg sound file on the fly at “installing” to a temp dir or whatever and then let Javasound play the Wave…?

PS: You can use the LGLP-ed JavalayerME also for J2SE? Because the Javalayer “full” is GPL-ed.