Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Adding sound to a game application

  1. #1
    Junior Member
    Join Date
    Aug 2011
    Thanked 0 Times in 0 Posts

    Talking Adding sound to a game application

    So I would like to loop background music for a game I am making, but I don't want to use the applet library. Is there a way I can do this? My file is .wav and about 21MB. I tried using a tutorial which required the sun.audio.* library but it gave me strange errors/warnings saying 'Access restriction'.

  2. #2
    Join Date
    Sep 2011
    United States
    My Mood
    Thanked 6 Times in 5 Posts

    Default Re: Adding sound to a game application

    Please post the strange errors/warnings so that you may get a better answer as to what your problem may be. Also a bit of code to see your implementation wouldn't hurt.

Similar Threads

  1. creating Sound Application Help
    By waseempki in forum Java SE APIs
    Replies: 1
    Last Post: August 25th, 2011, 02:54 AM
  2. Please help!!! Adding java app to a web application
    By snapper in forum What's Wrong With My Code?
    Replies: 2
    Last Post: July 19th, 2011, 10:26 AM
  3. Adding a frame/textarea to an application
    By zincc in forum What's Wrong With My Code?
    Replies: 2
    Last Post: March 5th, 2011, 04:43 PM
  4. Java sound API
    By bondage in forum Java SE APIs
    Replies: 3
    Last Post: July 22nd, 2010, 01:01 PM
  5. need help with Timer and sound
    By amahara in forum AWT / Java Swing
    Replies: 4
    Last Post: February 18th, 2010, 12:22 PM