Examples of play()


Examples of fr.valhalla.mailcheck.utils.SoundPlayer.play()

        try {
            SoundPlayer sp = new SoundPlayer();
            String selectedSound = soundCombo.getSelectedItem().toString();
            String soundFile = sp.SOUNDS.get(selectedSound);
            sp = new SoundPlayer(soundFile);
            sp.play();
        } catch(Exception e) {e.printStackTrace();}
       
    }//GEN-LAST:event_playSoundLabelMouseClicked

View Full Code Here

Examples of games.stendhal.client.sound.SoundGroup.play()

    ClientSingletonRepository.getSound().update();
  }

  protected void playSound(String groupName, String soundName) {
    SoundGroup group = ClientSingletonRepository.getSound().getGroup(groupName);
    group.play(soundName, 0, mAudibleArea, new Time(), false, true);
  }

  protected void playRandomSoundFromCategory(String groupName, String categoryName) {
    SoundGroup group = ClientSingletonRepository.getSound().getGroup(groupName);
    group.play(getRandomSoundFromCategory(categoryName), 0, mAudibleArea, new Time(), false, true);
View Full Code Here

Examples of games.stendhal.client.sound.SoundGroup.play()

    group.play(soundName, 0, mAudibleArea, new Time(), false, true);
  }

  protected void playRandomSoundFromCategory(String groupName, String categoryName) {
    SoundGroup group = ClientSingletonRepository.getSound().getGroup(groupName);
    group.play(getRandomSoundFromCategory(categoryName), 0, mAudibleArea, new Time(), false, true);
  }

  protected void playRandomSoundFromGroup(String groupName, String categoryName, long waitTimeInMilliSec) {
    if (mWaitTime < System.currentTimeMillis() && Rand.rand(100) < 5) {
      playRandomSoundFromCategory(groupName, categoryName);
View Full Code Here

Examples of games.stendhal.client.sound.SoundGroup.play()

    final GameObjects gameObjects = client.getGameObjects();
    final StaticGameLayers gameLayers = client.getStaticGameLayers();

    try {
      SoundGroup group = initSoundSystem();
      group.play("harp-1", 0, null, null, false, true);
    } catch (RuntimeException e) {
      logger.error(e, e);
    }

    // keep looping until the game ends
View Full Code Here

Examples of games.stendhal.client.sound.SoundGroup.play()

    SoundGroup group = ClientSingletonRepository.getSound().getGroup(layer.groupName);
    String soundName = event.get("sound");
    AudibleCircleArea area = new AudibleCircleArea(Algebra.vecf((float)entity.getX(), (float)entity.getY()), radius/4.0f, radius);
    group.loadSound(soundName, "audio:/" + soundName + ".ogg", Type.OGG, false);
    group.play(soundName, volume, 0, area, null, false, true);
  }

}
View Full Code Here

Examples of java.applet.AudioClip.play()

          return line;
        }else {
          URL url = new File(fileName).toURI().toURL();
          AudioClip clip= Applet.newAudioClip(url);
          clip.play();
        }
      }

    } catch (Exception e) {e.printStackTrace();
      if((new File(fileName)).isFile()) {
View Full Code Here

Examples of java.applet.AudioClip.play()

    public boolean play(String s) {
  log("play called");
  log("playing " + s);
  AudioClip sound = (AudioClip) sounds.get(s);
  if (sound != null) {
      sound.play();
      showStatus(s + " beep");
      return true;
  } else {
      showStatus("no beep!");
      log("  sound failed");
View Full Code Here

Examples of java.applet.AudioClip.play()

    public boolean playText(String url) {
  log("fetching: " + url);
  AudioClip sound = getAudioClip(getCodeBase(), url);
  if (sound != null) {
      sound.play();
      showStatus(url);
      return true;
  } else {
      return false;
  }
View Full Code Here

Examples of javafx.animation.Animation.play()

          pane.getChildren().remove(imageView);
        }
      }
    });
   
    animation.play();
   
  }
 
  protected abstract Animation createAndPrepareAnimation(Node curNode, Node newNode);
  protected abstract void resetProperties(Node curNode, Node newNode);
View Full Code Here

Examples of javafx.animation.FadeTransition.play()

        });
    }

    void deactivate() {
        FadeTransition fadeAway = FadeTransitionBuilder.create().fromValue(1.0).toValue(FADE_VALUE).duration(Duration.seconds(1)).node(this.lineChart).build();
        fadeAway.play();
        activated = false;
    }

    void activate() {
        FadeTransition fadeAway = FadeTransitionBuilder.create().fromValue(FADE_VALUE).toValue(1.0).duration(Duration.seconds(1)).node(this.lineChart).build();
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.