Example #1
0
 public void stop() {
   if (drivingClip != null) {
     drivingClip.stop();
   }
   if (turningClip != null) {
     turningClip.stop();
   }
 }
Example #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();
    }
  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();
    }
  }
Example #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);
  }
 public void stop() {
   myClip.stop();
 }
Example #6
0
 public static void pararSonido(AudioClip sonido) {
   sonido.stop();
 }
Example #7
0
 public void stop() {
   if (clip != null) {
     clip.stop();
   }
 }
Example #8
0
 public void stop() {
   AC.stop();
 }
Example #9
0
 public void stopSoundtrack() {
   if (soundTrack == null) return;
   soundTrack.stop();
 }
  public synchronized void stop() {

    if (audioClip != null) audioClip.stop();
  }
 public void stopMusic() {
   // stops the background music
   bckGrndMusic.stop();
   on = false;
 }