///<summary> /// Start playing the loaded song module ///</summary> ///<exception cref="SharpModException"></exception> public void Start() { if (SoundRenderer == null) { throw new SharpModException("No renderer"); } if (!IsPlaying) { IsPlaying = true; ChannelsMixer.VC_PlayStart(); SoundRenderer.PlayStart(); } }
///<summary> /// Stop the currently playing song module ///</summary> ///<exception cref="SharpModException"></exception> public void Stop() { if (SoundRenderer == null) { throw new SharpModException("No renderer"); } if (IsPlaying) { IsPlaying = false; Pause(); ChannelsMixer.VC_PlayStop(); SoundRenderer.PlayStop(); } }