public void Stop() { if (checkInit()) { if (isVideo) { _video.Stop(); } else { _audio.Stop(); } } }
/// <summary> /// Stop music that is currently playing and dispose of the song. /// Does nothing if no music is playing. /// </summary> public void Stop() { if (isPlaying) { currentSong.Stop(); currentSong.Dispose(); currentSong = null; isPlaying = false; lastMusicPosition = 0; } }
public override void Stop() { mAVAudio.Stop(); }