Package sounds

Examples of sounds.Sound.play()


 
  public void old() {
//    Sound sound = new OggSound("SoundMeni.ogg");
//    Sound sound = new OggSound("Groove Grove.ogg");
    Sound sound = new WavSound("end.wav");
    sound.play();
    Scanner in = new Scanner(System.in);
   
    while (true) {
      System.out.print(">");
      String input = in.nextLine();
View Full Code Here


      System.out.print(">");
      String input = in.nextLine();
      String[] args = input.split(" ");

      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"))
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.