Results 1 to 2 of 2
  1. #1
    DFORMS is offline Member
    Join Date
    Jul 2014
    Posts
    9
    Rep Power
    0

    Default Play, Stop, Pause song Java Applet

    Hey guys, in my card game applet I have to play some music and the user must have the ability to play, stop and pause the song using buttons. I got the play and stop to work easy but I'm unable to add the pause option/method. Any good tutorials available? I haven't found much : s Thank you!

  2. #2
    DFORMS is offline Member
    Join Date
    Jul 2014
    Posts
    9
    Rep Power
    0

    Default Re: Play, Stop, Pause song Java Applet

    I don't get it song.pause(); and song.resume(); aren't working? JavaClipAudioPlayer (FreeTTS 1.2)

    Java Code:
    	public class pauseSong implements ActionListener{
    		public void actionPerformed(ActionEvent evt){
    			String input = evt.getActionCommand();
    			System.out.println("-----");
    			System.out.println("Action: " + input + " song");
    			mySong.pause();
    		}
    	}

Similar Threads

  1. Replies: 6
    Last Post: 12-16-2012, 03:26 AM
  2. Can play audio, but can't stop it
    By LucienMontierre in forum New To Java
    Replies: 1
    Last Post: 06-16-2012, 07:07 PM
  3. How to stop/pause running third party exe?
    By 2bGeek in forum AWT / Swing
    Replies: 3
    Last Post: 02-28-2009, 07:26 AM
  4. Replies: 1
    Last Post: 12-07-2008, 05:50 PM

Posting Permissions

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