public void fadeOut() { // Skip the fade action if the fade out time is zero. if (sound_src.getFadeOut() == 0) { sound_src.stop(); } else { sound_src.fadeOut(); } is_playing = false; }
public void stop() { sound_src.stop(); is_playing = false; }