/** Fades the song out, then pauses the song. */ public void pauseSong() { if (!fadeEnter) { songPause = System.currentTimeMillis(); setGainShift(-30); fadeEnter = true; } if (song.isPlaying() && (System.currentTimeMillis() - songPause) >= songFade) { song.pause(); } ourPause = true; }
public void pauseAudio() { ap.pause(); }