View Full Version : Windows Media Audio file import java
05-23-2007, 03: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,
ac1 = getAudioClip(getCodeBase(), "temp.au");
or is there really no way to import it Thanks.
05-23-2007, 08: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
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)
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.