예제 #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;
 }