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.

Page 1 of 2 12 LastLast
Results 1 to 25 of 31

Thread: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

  1. #1
    Member DusteroftheCentury's Avatar
    Join Date
    Jan 2012
    Location
    Northern California
    Posts
    42
    My Mood
    Fine
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Default Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    Hey guys,

    I am new to Java and am working on a fun little program. It's kinda pointless, but its to teach me the concepts.
    Anyway, This is my code:

    import javax.swing.*;
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.URL;
    import java.net.*;
     
    public class TestClass extends JFrame implements ActionListener
     
    {
    	AudioClip clip;
     
    	public static void main(String[] args)
     
    	{
    		new TestClass();
    	}
     
    	private JButton button_ok;
     
    	public TestClass()
    	{
    	this.setSize(300,300);
    	this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    	this.setTitle("Peanut Butter Jelly Time!");
     
     
     
     
    		URL url = TestClass.class.getResource("PBnJ.wav");
    		AudioClip clip = Applet.newAudioClip(url);
    		clip.loop();
     
    		this.setVisible(true);
    	}
     
     
     
    	JPanel panel = new JPanel();
    	{
     
    		button_ok = new JButton("Shut up Mr.Banana!");
    		button_ok.addActionListener(this);
    		JLabel label = new JLabel("PEANUT BUTTER JELLY TIME");
    		panel.add(label);
    		panel.add(button_ok);
    		ImageIcon pic = new ImageIcon("PBn'J.gif");
    		panel.add(new JLabel(pic));
     
     
    		this.add(panel);
    		this.setVisible(true);
    	}
    	{
     
    	}
     
     
     
    	private int clickCount = 0;
     
    	public void actionPerformed(ActionEvent e)
    	{
    		if (e.getSource() == button_ok)
    		{		
     
    		clickCount++;
    		if (clickCount == 1)
    			button_ok.setText("PB n' J Forever!");
    		else
    			button_ok.setText("Clicking me "
    				+ clickCount + " times wont change my answer!");
     
    		}
    		{
    		if (clickCount == 10)
    			button_ok.setText("Y U NO LIKE PBn'J?");
    		}
    		{
    		if (clickCount == 15)
    			button_ok.setText("You cant fight it.");
    		}
    		{
    		if (clickCount == 30)
    			button_ok.setText("IM A BANANA");		
    		}	
    	}	
    }

    I want the output of the program to be a button that changes the text of it when you click it, a dancing banana, a label, and Peanut Butter Jelly Time Playing in the background. Currently it does everything but the last.

    In eclipse, it gives out no errors until I try to run it.

    When I run it in Eclipse I get everything but the music. It acts as if the code isnt there, but it gives this error message.

    "Exception in thread "main" java.lang.NullPointerException
    at sun.applet.AppletAudioClip.<init>(Unknown Source)
    at java.applet.Applet.newAudioClip(Unknown Source)
    at TestClass.<init>(TestClass.java:31)
    at TestClass.main(TestClass.java:16)"

    Line 16 is: new TestClass();
    Line 31 is: AudioClip clip = Applet.newAudioClip(url);


    Please help a new guy out!

    -Duster
    Last edited by DusteroftheCentury; January 17th, 2012 at 10:11 PM.


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    What is null on line 16 (add some println's in there to debug and see if the url is null - if so, are you sure the audio file is in the appropriate location (same package as the class))?

  3. #3
    Member DusteroftheCentury's Avatar
    Join Date
    Jan 2012
    Location
    Northern California
    Posts
    42
    My Mood
    Fine
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Default Re: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    Ok. I know how to do printlns but what do I add to them to make them debug? Also- When I run it outside of Eclipse, with it in the same folder as the music and pictures etc., it'll just give me what I want minus the song, but since im running it outside of Eclipse, I get no error messages. (Im running an Executable JAR.) the song. To tes tit in Eclipse, so I can see error messages, where do I put pics music etc.?

    Thanks for helping.

    -Duster
    Last edited by DusteroftheCentury; January 17th, 2012 at 10:11 PM.

  4. #4
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    987
    Thanks
    6
    Thanked 206 Times in 182 Posts

    Default Re: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    Im running an Executable JAR
    Make sure that the wav file is in the jar archive and in the right place, ie next to TestClass.class. Also that the spelling of the jar entry is "PBnJ.wav". In particular Windows isn't fussy about the case, but jar files are.

  5. #5
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    987
    Thanks
    6
    Thanked 206 Times in 182 Posts

    Default Re: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    I know how to do printlns but what do I add to them to make them debug?
    A good place to start would be printing the url you are using for the sound clip. In the case of Eclipse it will be a file: url. Then you go looking on your hard disk to see if the file is at that place.

  6. #6
    Member DusteroftheCentury's Avatar
    Join Date
    Jan 2012
    Location
    Northern California
    Posts
    42
    My Mood
    Fine
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Default Re: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    Do I add the .wav into the jar?
    If so how? (If possible using Eclipse)

    Could you put the code for detecting if the url is valid? Or do I just check?
    Thx for helping.
    -Duster

  7. #7
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    987
    Thanks
    6
    Thanked 206 Times in 182 Posts

    Default Re: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    In Eclipse the "File->Export->Runnable Jar" wizard should do this provided you have the wav file in the same place as the class. I think if you copy the wav file into the package tree next to the java file for the class then it gets copied to the right place when the program is compiled.

    As far as the url is concerned, just print it. It will be a valid URL, what matters is whether there is a file on your hard disk at that place.

  8. #8
    Member DusteroftheCentury's Avatar
    Join Date
    Jan 2012
    Location
    Northern California
    Posts
    42
    My Mood
    Fine
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Default Re: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    So drag the resources in next to the code? In the src folder?
    Or just in the project folder next to the src folder?
    Edit: I tried putting them in both places, didnt work
    Also tried putting it in bin folder. Basically I have one of each in every folder except settings.

    Thx so much.

    -Duster
    Last edited by DusteroftheCentury; January 17th, 2012 at 11:45 PM.

  9. #9
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    987
    Thanks
    6
    Thanked 206 Times in 182 Posts

    Default Re: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    Yes, the wav file goes right next to TestClass in the Eclipse's Package view.

    "didnt work" == what? Did you print the url? What did it say? Did you check on your hard disk at that location for the .wav file? Was it there?

  10. The Following User Says Thank You to pbrockway2 For This Useful Post:

    DusteroftheCentury (January 18th, 2012)

  11. #10
    Member DusteroftheCentury's Avatar
    Join Date
    Jan 2012
    Location
    Northern California
    Posts
    42
    My Mood
    Fine
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Default Re: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    THANK YOU SO MUCH. YOU WERE SO HELPFUL! It works! It works! But only in Eclipse... What options do I check when exporting the jar to make sure it will work outside of Eclipse?
    The .wav and .gif files are in so many places in the project folder, if I check the right options, it would be hard not to import them.

    Thank. You. So. Much.
    (I may not be able to get back to you until tomorrow)

    -Duster

  12. #11
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    987
    Thanks
    6
    Thanked 206 Times in 182 Posts

    Default Re: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    Maybe I'm wrong - in which case someone should chime in - but I don't think exporting as a *runnable* jar has any options. Exporting as a jar does, and you can select the resources you want to include (they're all listed in a couple of panes at the top of the window). But for runnable jars you just select the launch configuration and how you want libraries handled (if that matters).

    If you are exporting a runnable jar and finding that the sound disappears then check the case of the resource names. This is the point I made earlier that Windows will regard Foo.wav and foo.wav as the same, but within a jar file they are different things.

  13. #12
    Member DusteroftheCentury's Avatar
    Join Date
    Jan 2012
    Location
    Northern California
    Posts
    42
    My Mood
    Fine
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Default Re: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    Thanks again for your continued help. So I found out that it does work outside of Eclipse but only with the resource files in the same folder. When I try to export the files into the jar, it can't find them. I have double checked the file names and they are correct. Which option do I select for exporting? And right now, I have the resource files crammed into just about every where possible in the project file.

    Thank.You.So.Much.

    -Duster

  14. #13
    Member DusteroftheCentury's Avatar
    Join Date
    Jan 2012
    Location
    Northern California
    Posts
    42
    My Mood
    Fine
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Default Re: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    Wait...

    Forget the resource thing for now, when I run it it plays for about 30 seconds- then stops and does not loop. The full file is 1:45 long.
    Does this have something to do with the AudioClip method? If so is their another one for playing longer music?
    Please help.

    -Duster

  15. #14
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    987
    Thanks
    6
    Thanked 206 Times in 182 Posts

    Default Re: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    According to the API docs you've got play(), loop() and stop().

    In your original post you call loop() which should ... loop. The fact that it stops after c30s is weird. My guess is that whatever is causing that is stopping it from looping. You haven't changed the code and could possibly have stopped the loop somewhere have you?

    This guy had the same problem (back in May last year). That's no help, of course - but it's comforting to find you're not alone! The reason I mention that link is that the one person who responded - Andrew Thompson - is one of the Good Guys of the online Java world, and I wouldn't dismiss his suggestion of looking at javax.sound.sampled.Clip. Personally I've never had a problem with AudioClip, but my experience is almost certainly less than his.

    The other approach - which also takes work! - is to step back from your current problem and construct a SSCCE. In your case just a frame with background (longish) looping clip. Then gradually add some functionality. If a simple frame+loop functions correctly then the problem lies in the detail of your code somewhere. You mention having resources all over the place, and general randomness of code organisation can (will?) bite you in the @ss like this.

    Use the opportunity of a SSCCE to come to grips with resource location and export within Eclipse.

    If a simple frame+loop *fails* to function correctly then you have a very specific problem that we can all look at.

    -----

    Sorry for the absence of magic bullets in this post. javax.sound.sampled.Clip and friends will take work, and so will constructing a SSCCE. Recommendations that people construct a SSCCE are commonplace on sites like this ... for good reason! That's probably the approach I'd take first.

  16. #15
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    987
    Thanks
    6
    Thanked 206 Times in 182 Posts

    Default Re: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    Just out of interest I made a .wav file and adapted the following from your code:

    import java.net.URL;
    import javax.swing.JFrame;
     
    public class LoopFrame extends JFrame {
        AudioClip clip; // <-- note this variable is never used
     
        public static void main(String[] args) {
            new LoopFrame();
        }
     
        public LoopFrame() {
            this.setSize(300, 300);
            this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            this.setTitle("Frame loop test");
     
            URL url = LoopFrame.class.getResource("BWV243 01 Magnificat.wav");
            AudioClip clip = Applet.newAudioClip(url);
            clip.loop();
     
            this.setVisible(true);
        }
    }

    The program runs, and the wav file (about 3 minutes) loops. So the problem is not with the length of the file.

    As I described before the wav resource just sits next to the java source file, and all you do is set the run configuration and destination when you export s a runnable jar. res.jpgexport.jpg

  17. The Following User Says Thank You to pbrockway2 For This Useful Post:

    DusteroftheCentury (January 18th, 2012)

  18. #16
    Member DusteroftheCentury's Avatar
    Join Date
    Jan 2012
    Location
    Northern California
    Posts
    42
    My Mood
    Fine
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Default Re: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    Ok first of all,
    Thank.You.So.Much.

    I tested your code and it does work. It plays the audio how I would want it. I cant see what the differences between it and my code that make it work or not work, so I am guessing it is something with my code outside of the audio. Im now going to try to rebuild my code around yours. Lets cross our fingers!

    You are so helpful.

    -Duster

  19. #17
    Member DusteroftheCentury's Avatar
    Join Date
    Jan 2012
    Location
    Northern California
    Posts
    42
    My Mood
    Fine
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Default Re: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    Wait...

    I tried to edit my your code to get what I want from mine (minus the button because it is not needed), and got the same issue... Ittl play for about 30 secs then stop. This didnt happen before I edited your code. As you can see, I basically just added a JPanel and its contents, and changed FrameLoop to TestClass where it pops up. Here is the new code:
    import java.net.URL;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import java.applet.*;
    import javax.swing.*;
    import java.awt.*;
     
    public class TestClass extends JFrame {
        AudioClip clip; // <-- note this variable is never used
     
        public static void main(String[] args) {
            new TestClass();
        }
     
        public TestClass() {
            this.setSize(300, 300);
            this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            this.setTitle("Frame loop test");
     
            URL url = TestClass.class.getResource("PbnJ.wav");
            AudioClip clip = Applet.newAudioClip(url);
            clip.loop();
     
            this.setVisible(true);
        }
        	JPanel panel = new JPanel();
    	{
     
     
    		JLabel label = new JLabel("PEANUT BUTTER JELLY TIME");
    		panel.add(label);
    		ImageIcon pic = new ImageIcon("PBn'J.gif");
    		panel.add(new JLabel(pic));
     
     
    		this.add(panel);
    		this.setVisible(true);
    	}
    }

    Could it have something to do with my many unnecesary imports? If this cant be resolved with a simple solution I will look into one of your suggestions.

    Thank you so much.

    -Duster

  20. #18
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    987
    Thanks
    6
    Thanked 206 Times in 182 Posts

    Default Re: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    I renamed my wav file, created a gif file and ran exactly the code you posted. It ran fine ie 3 min wav file looped.

    But I have a few questions:

    Imports are a compiler time thing and don't affect the compiled byte code at all. So that isn't the difference. But why are the other imports there?

    Why do you put the resources (the wav file and the gif) in different locations? In particular the ImageIcon constructor you use takes a filename argument and, hence, will be no good once you make a jar file. Applet's newAudioClip() on the other hand takes a URL argument which is more robust (works in a jar or not). I suggest you use the other form of ImageIcon, the one that also takes a URL argument. And for now put both resources in the same place.

    Why do you have an initialiser block? (a block of code outside any method or constructor. it's the code you have just after declaring the panel) I suggest you move this code - and the declaration of the panel - into the constructor, and remove the duplicate setVisible() call.

    Why keep the unused AudioClip declaration at the start of the class definition. The variable clip declared there is never used.

    -----

    Most of the above revolves around keeping the code neat, and not just chucking things in at random. (Sorry if that sounds harsher than is meant - I realise you are learning and, by definition, that process is rather random.)

  21. The Following User Says Thank You to pbrockway2 For This Useful Post:

    DusteroftheCentury (January 19th, 2012)

  22. #19
    Member DusteroftheCentury's Avatar
    Join Date
    Jan 2012
    Location
    Northern California
    Posts
    42
    My Mood
    Fine
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Default Re: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    What is the correct code for the other method of making an ImageIcon? I tried
    URL pic = TestClass.class.getResource("PBn'J.gif");
    		panel.add(new JLabel(pic));
    (It seemed to be the most obvious way) But it didnt work.
    I also tried a way from stackoverflow.com
    ImageIcon Imageicon = new ImageIcon(ImageIO.read(TestClass.class.getClassLoader().getResourceAsStream("PBn'J.gif")));
    But it dosent seem to work. What is the correct way?

    I did move the initializer code to where you said, removed the AudioClip clip; thing, and got rid ogf the double this.setVisible.

    Here is the new code. ( I left the ImageIcon code to the way I know works but not for jar files.)

    import java.net.URL;
    import javax.swing.ImageIcon;
    import javax.imageio.ImageIO;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import java.applet.*;
    import javax.swing.*;
    import java.awt.*;
     
    public class TestClass extends JFrame {
     
     
        public static void main(String[] args) {
            new TestClass();
        }
     
        public TestClass() {
            this.setSize(300, 300);
            this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            this.setTitle("PEANUT BUTTER JELLY TIME");
        	JPanel panel = new JPanel();
    	{
     
     
    		JLabel label = new JLabel("PEANUT BUTTER JELLY TIME");
    		panel.add(label);
    		ImageIcon pic = new ImageIcon("PBn'J.gif");
    		panel.add(new JLabel(pic));
     
     
            URL url = TestClass.class.getResource("PbnJ.wav");
            AudioClip clip = Applet.newAudioClip(url);
            clip.loop();
     
            this.add(panel);
            this.setVisible(true);
        	}
        }
    }

    Can you tell me which imports are not needed? Im afraid if I mess with them myself I may break something.(Or a lot of somethings.)

    After cleaning up the code I still get the weird play for 30 secs then stop thing. If it works for you maybe it is something with my computer? Or the way im running it?

    Thank You So much for your continued help.

    -Duster
    Last edited by DusteroftheCentury; January 19th, 2012 at 08:02 PM. Reason: Updated code

  23. #20
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    987
    Thanks
    6
    Thanked 206 Times in 182 Posts

    Default Re: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    This is your code slightly changed (imports and location of the gif). The API documentation is the place to look to see what alternatives are available.

    import java.applet.Applet;
    import java.applet.AudioClip;
    import java.net.URL;
     
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
     
    public class TestClass extends JFrame {
     
     
        public static void main(String[] args) {
            new TestClass();
        }
     
        public TestClass() {
            this.setSize(300, 300);
            this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            this.setTitle("PEANUT BUTTER JELLY TIME");
            JPanel panel = new JPanel();
     
            JLabel label = new JLabel("PEANUT BUTTER JELLY TIME");
            panel.add(label);
            //ImageIcon pic = new ImageIcon("PBn'J.gif");
            ImageIcon pic = new ImageIcon(TestClass.class.getResource("PBn'J.gif"));
            panel.add(new JLabel(pic));
     
     
            URL url = TestClass.class.getResource("PbnJ.wav");
            AudioClip clip = Applet.newAudioClip(url);
            clip.loop();
     
            this.add(panel);
            this.setVisible(true);
        }
    }

    Of course the gif itself has to be moved to wherever you put the wav file.

    I'm running it now to see if it loops ... and it does.

  24. #21
    Member DusteroftheCentury's Avatar
    Join Date
    Jan 2012
    Location
    Northern California
    Posts
    42
    My Mood
    Fine
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Default Re: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    Argh.

    It must be something wrong on my side. When i use the EXACT SAME CODE, it runs for about 30 secs then stops. What could be wrong with my computer?

    -Duster
    Last edited by DusteroftheCentury; January 19th, 2012 at 09:15 PM.

  25. #22
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    987
    Thanks
    6
    Thanked 206 Times in 182 Posts

    Default Re: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    We are also using different wav files. Try changing the file you are using. Mine is a wav signed 16bit PCM (whatever that means...)

    Also if you are using an older version of Java try compiling it on another computer with a newer version.

  26. #23
    Member DusteroftheCentury's Avatar
    Join Date
    Jan 2012
    Location
    Northern California
    Posts
    42
    My Mood
    Fine
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Default Re: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    Im using Java SE 6 update 30, and I have no idea what you mean about different wave files.

    Thanks for helping.

    -Duster

  27. #24
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    987
    Thanks
    6
    Thanked 206 Times in 182 Posts

    Default Re: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    All I meant is that *my* wav file loops fine. So maybe something is wrong with the one you are using. I know you said you had played it in another application, but it is still worth replacing it with some other wav file to see what happens.

  28. #25
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Need help playing sound in backround of a program in a loop.(Please Fix my code!)

    @DusteroftheCentury: Try creating a button and in action event play the clip again and see if it successfully plays the clip. If it doesn't it clearly means that there is something wrong with the resource you are using to play/loop.
    If it does, i guess you can conclude that something is stopping it. This is one of the way to debug this issue right now.

Page 1 of 2 12 LastLast

Similar Threads

  1. Adding sound to program.
    By Archibold9 in forum What's Wrong With My Code?
    Replies: 32
    Last Post: December 21st, 2011, 02:28 PM
  2. Error with code to implement sound
    By LukeDavison in forum What's Wrong With My Code?
    Replies: 1
    Last Post: December 4th, 2011, 02:27 PM
  3. Playing a .wav file in SplitPaneDemo code
    By elwells in forum What's Wrong With My Code?
    Replies: 0
    Last Post: October 16th, 2011, 11:39 PM
  4. Playing sound in an applet
    By Skyhigh32 in forum Java Theory & Questions
    Replies: 1
    Last Post: June 3rd, 2011, 07:41 AM
  5. playing sound using java
    By sdhilipan89 in forum Java Applets
    Replies: 6
    Last Post: March 25th, 2010, 08:59 AM