/// <summary>
        /// Pauses recording.
        /// Invokes "VoiceRecorderPaused" to other application's modules.
        /// </summary>
        public void PauseVoiceRecording()
        {
            try
            {
                _recorder.Pause();
            }
            catch (Exception exception)
            {
                ErrorHandler(exception.Message);
                return;
            }

            VoiceRecorderPaused?.Invoke(this, new EventArgs());
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Handles "VoiceRecorderPaused" of the IVoiceRecorderService object.
 /// Invokes "VoiceRecorderPaused" to other application's modules.
 /// </summary>
 /// <param name="sender">Instance of the VoiceRecorderService class.</param>
 /// <param name="e">Contains event data.</param>
 private void VoiceRecorderPausedEventHandler(object sender, EventArgs e)
 {
     VoiceRecorderPaused?.Invoke(this, new EventArgs());
 }