/// <summary> /// Cancel an Encode method call in progress. /// </summary> public void Stop() { //Send stop signal to all potentially long-running processes. cancel = true; if (videoStream != null) { videoStream.Stop(); } if (slideStream != null) { slideStream.Stop(); } if (audioStreams != null) { for (int i = 0; i < audioStreams.Length; i++) { if (audioStreams[i] != null) { audioStreams[i].Stop(); } } } if (mixer != null) { mixer.Stop(); } if (presentationMgr != null) { presentationMgr.Stop(); } }