Пример #1
0
 public void stop() {
   if (drivingClip != null) {
     drivingClip.stop();
   }
   if (turningClip != null) {
     turningClip.stop();
   }
 }
Пример #2
0
    public void playDestroyRows(int rows) {
      int soundid = rows - 1;
      if (0 > soundid || soundid >= destroyRowSounds.length || destroyRowSounds[soundid] == null)
        return;

      soundTrack.stop();
      destroyRowSounds[soundid].play();
      soundTrack.stop();
      destroyRowSounds[soundid].play();
      soundTrack.stop();
      destroyRowSounds[soundid].play();
      soundTrack.play();
    }
Пример #3
0
  public void musicClicked() {
    // Mutes/unmutes music
    // checks to see if mute/unmute button is clicked
    if (muteB.clicked(mx, my, true) && pause == true && musicOn == true) {
      clickedSound();
      musicOn = false;
      clicked.stop();
      bckGrndMusic.stop();
      coinSound.stop();
      starSound.stop();
      bounce.stop();

    } else if (unmuteB.clicked(mx, my, true) && pause == true && musicOn == false) {
      clickedSound();
      musicOn = true;
      bckGrndMusic.loop();
    }
  }
Пример #4
0
  public void win() {
    timer.stop();

    backgroundMusic.stop();
    winMusic = Applet.newAudioClip(getCompleteURL("Victory Fanfare.wav"));
    winMusic.play();
    JOptionPane.showMessageDialog(
        panel,
        "You have successfully marked all of Fabear's possible hiding spots!\n"
            + "He is now being sent to the lab for further analysis.\n"
            + "Hopefully our hero will once again be himself.",
        "Game Over",
        JOptionPane.INFORMATION_MESSAGE);
    System.exit(0);
  }
Пример #5
0
 public void stop() {
   myClip.stop();
 }
Пример #6
0
 public static void pararSonido(AudioClip sonido) {
   sonido.stop();
 }
Пример #7
0
 public void stop() {
   if (clip != null) {
     clip.stop();
   }
 }
Пример #8
0
 public void stop() {
   AC.stop();
 }
Пример #9
0
 public void stopSoundtrack() {
   if (soundTrack == null) return;
   soundTrack.stop();
 }
  public synchronized void stop() {

    if (audioClip != null) audioClip.stop();
  }
Пример #11
0
 public void stopMusic() {
   // stops the background music
   bckGrndMusic.stop();
   on = false;
 }