Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Dec 2006
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Windows Media Audio file import java

    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.

  • #2
    New Coder
    Join Date
    Dec 2006
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #3
    Gox
    Gox is offline
    Regular Coder Gox's Avatar
    Join Date
    May 2006
    Location
    Ontario, Canada
    Posts
    392
    Thanks
    2
    Thanked 20 Times in 20 Posts
    I've never put sound in a Java appplication, but here are some links I googled.

    http://www.rgagnon.com/javadetails/java-0191.html
    http://www.jsresources.org/examples/...ayer.java.html (Here they define an external_buffer_size)
    http://www.jsresources.org/examples/
    http://java.sun.com/j2se/1.5.0/docs/.../contents.html (Chapter 4)

    Good Luck.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •