private void CmbRecordingDevice_SelectedIndexChanged(object sender, EventArgs e) { isRecordingDeviceSelected = true; loopbackRecorder?.StopRecording(); StartRecordingDevice(); PlaySilence(); }
public void CloseApplication() { SetWindowsHook.Stop(); loopbackRecorder.StopRecording(); devices.Dispose(); streamingRequestListener.StopListening(); notifyIcon.Visible = false; mainForm.Dispose(); }
/// <summary> /// Close the application. /// </summary> public void CloseApplication() { SaveSettings(); NativeMethods.StopSetWindowsHooks(); loopbackRecorder?.StopRecording(); devices?.Dispose(); streamingRequestListener?.StopListening(); if (notifyIcon != null) { notifyIcon.Visible = false; } if (mainForm != null) { mainForm.Dispose(); } }