Package sounds

Examples of sounds.Sound.loop()


      if (input.equals("play"))
        sound.play();
      else if (input.equals("stop"))
        sound.stop();
      else if (input.equals("loop"))
        sound.loop();
      else if (input.equals("pause"))
        sound.pause();
      else if (input.equals("resume"))
        sound.resume();
      else if (input.equals("close"))
View Full Code Here


      else if (input.equals("resume"))
        sound.resume();
      else if (input.equals("close"))
        sound.close();
      else if (input.startsWith("loop"))
        sound.loop(Integer.parseInt(args[1]));
      else if (input.startsWith("volume"))
        sound.setVolume(Float.parseFloat(args[1]));
      else if (input.equals("getpath"))
        System.out.println(sound.getPath());
      else if (input.equals("isstopped"))
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.