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.


>> REGISTER NOW TO START POSTING


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

Results 1 to 2 of 2

Thread: Playing sound in an applet

  1. #1
    Junior Member
    Join Date
    May 2011
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Playing sound in an applet

    I'm trying to play a song in an applet. I've googled it, and most of what I see is audio clip, but it doesn't seem to be playing the music. I've tried .au, .wav, .mp3, and .m4a. None of them are playing, and I didn't have any errors is my code.

    Could someone please explain how to play sound in an Applet, or why it isn't working for me? Maybe theres a different way of doing it that would work for me? (The simpler the better.)


  2. #2
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 287 Times in 225 Posts
    Blog Entries
    4

    Default Re: Playing sound in an applet

    We will need to see your code please..
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

    Looking for a Java job? Visit - Java Programming Careers

Similar Threads

  1. Playing Songs in Java
    By obogobo in forum File I/O & Other I/O Streams
    Replies: 5
    Last Post: May 31st, 2011, 11:37 PM
  2. Java error while Playing Video file.
    By ravigirismiles in forum What's Wrong With My Code?
    Replies: 1
    Last Post: September 7th, 2010, 11:09 AM
  3. Java sound API
    By bondage in forum Java SE APIs
    Replies: 3
    Last Post: July 22nd, 2010, 01:01 PM
  4. Playing .wav file
    By harsha in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 27th, 2010, 11:33 PM
  5. playing sound using java
    By sdhilipan89 in forum Java Applets
    Replies: 6
    Last Post: March 25th, 2010, 08:59 AM