Examples of loop()


Examples of javax.sound.sampled.Clip.loop()

        }
        try {
            Clip c = AudioSystem.getClip();
            c.open(format,data,0,data.length);
            current = c;
            c.loop(Clip.LOOP_CONTINUOUSLY);
            System.out.println("Playing " + start + " to " + end + " for " + time + "s");
        }
        catch ( Exception e ) {
            e.printStackTrace();
        }
View Full Code Here

Examples of javax.sound.sampled.Clip.loop()

      if (volume != 1) {
        volCtrl.setValue(min * (1 - volume));
      }
    }
    c.loop(loop);
  }

  /**
   * Plays a specific sound at a given panning with max. volume and without looping.
   *
 
View Full Code Here

Examples of javax.sound.sampled.Clip.loop()

    if (soundEvents.containsKey(event)) {
      Object sound = soundEvents.get(event);
      if (sound instanceof Clip) {
        Clip clip = (Clip) sound;
        clip.setFramePosition(0);
        clip.loop(Clip.LOOP_CONTINUOUSLY);
        clip.start();
        looping = clip;
      } else if (sequencer != null && sound instanceof Sequence) {
        playEvent(event);
        looping = sound;
View Full Code Here

Examples of javax.sound.sampled.Clip.loop()

    public void loop()
    {
      Clip myclip = getClip();
      if (myclip != null)
        myclip.loop(Clip.LOOP_CONTINUOUSLY);
    }

    public void play()
    {
      Clip myclip = getClip();
View Full Code Here

Examples of javax.sound.sampled.Clip.loop()

    public void loop()
    {
      Clip myclip = getClip();
      if (myclip != null)
        myclip.loop(Clip.LOOP_CONTINUOUSLY);
    }

    public void play()
    {
      Clip myclip = getClip();
View Full Code Here

Examples of javax.sound.sampled.Clip.loop()

   *
   * @param soundName - the String relative to the clip in the Map
   */
  public void playLoop(String soundName) {
    Clip cl = this.getSound(soundName);
    cl.loop(Clip.LOOP_CONTINUOUSLY);
  }

  /**
   * Reproduces the relative audio file one time.
   *
 
View Full Code Here

Examples of marauroa.functional.SimpleClient.loop()

              boolean choosen = client.chooseCharacter("testCharacter");
              assertTrue(choosen);

              int amount = Math.abs(rand.nextInt() % 90) + 10;
              while (client.getPerceptions() < amount) {
                client.loop(0);

                if (rand.nextInt() % 10 == 0) {
                  /*
                   * Send an action to server.
                   */
 
View Full Code Here

Examples of marauroa.functional.SimpleClient.loop()

            boolean choosen = client.chooseCharacter("testCharacter");
            assertTrue(choosen);

            int amount = Math.abs(new Random().nextInt() % 30) + 10;
            while (client.getPerceptions() < amount) {
              client.loop(0);

              if (new Random().nextInt() % 10 == 0) {
                /*
                 * Send an action to server.
                 */
 
View Full Code Here

Examples of net.sf.arianne.marboard.client.gui.MainWindow.loop()

    MainWindow mainWindow = new MainWindow(client, board);
    mainWindow.createWindow();
    logger.info("Starting client loop");

    mainWindow.loop();
    System.exit(0);
  }

}
View Full Code Here

Examples of org.jnetpcap.Pcap.loop()

    }

    final PcapPacketArrayList list =
        new PcapPacketArrayList((int) new File(file).length() / 100);

    pcap.loop(Pcap.LOOP_INFINATE, list, null);

    pcap.close();

    return list;
  }
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.