/// <summary> /// Pauses buffering of audio data from the device. /// </summary> /// <exception cref="InvalidOperationException"> /// The current state is <see cref="AudioIOState.Idle"/>.<br/> /// -or-<br/> /// The method is called in the <see cref="AsyncAudioCapture.DataAvailable"/> event handler. /// </exception> /// <exception cref="ObjectDisposedException">The AudioCaptureBase has already been disposed of.</exception> /// <seealso cref="Resume"/> /// <since_tizen> 3 </since_tizen> public void Pause() { if (_state == AudioIOState.Paused) { return; } ValidateState(AudioIOState.Running); AudioIOUtil.ThrowIfError(AudioInput.Pause(_handle)); }
/// <summary> /// Pauses buffering of audio data from the device. /// </summary> /// <exception cref="InvalidOperationException"> /// The current state is <see cref="AudioIOState.Idle"/>.<br/> /// -or-<br/> /// The method is called in the <see cref="AsyncAudioCapture.DataAvailable"/> event handler. /// </exception> /// <exception cref="ObjectDisposedException">The AudioCaptureBase has already been disposed of.</exception> /// <seealso cref="Resume"/> /// <since_tizen> 3 </since_tizen> public void Pause() { if (_state == AudioIOState.Paused) { return; } ValidateState(AudioIOState.Running); AudioInput.Pause(_handle).ThrowIfFailed("Failed to pause."); }