View Full Version : Windows Media Audio file import java

05-23-2007, 04:22 AM
Sorry, if i seem like posting more than 1 post in the front, but it's new topic. By the way thanks ghell.
Does anyone know how to import windows media audio files into java programing: I tried,
AudioClip a;
ac1 = getAudioClip(getCodeBase(), "temp.au");

or is there really no way to import it Thanks.

05-23-2007, 09:59 PM
i fixed it where i converted the file into .wav but i'm getting an error:
Exception in thread "AWT-EventQueue-1" java.lang.OutofMemoryError: Java heap space.
Is there anyway i can fix this, someone please help me because i really like this song in our program! Thanks

05-24-2007, 01:24 AM
I've never put sound in a Java appplication, but here are some links I googled.

http://www.jsresources.org/examples/SimpleAudioPlayer.java.html (Here they define an external_buffer_size)
http://java.sun.com/j2se/1.5.0/docs/guide/sound/programmer_guide/contents.html (Chapter 4)

Good Luck.