public void stop() { if (drivingClip != null) { drivingClip.stop(); } if (turningClip != null) { turningClip.stop(); } }
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(); } }
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(); }
public static void pararSonido(AudioClip sonido) { sonido.stop(); }
public void stop() { if (clip != null) { clip.stop(); } }
public void stop() { AC.stop(); }
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; }