/// <summary> /// Updates the Recorder audio bit rate. /// Invokes "RecordingQualityUpdated" to other application's modules. /// </summary> /// <param name="item">Setting new value indicator.</param> public void UpdateRecordingQuality(AudioBitRateType item) { try { _recorder.AudioBitRate = RECORDING_QUALITY_DICTIONARY[item]; } catch (Exception exception) { ErrorHandler(exception.Message); return; } RecordingQualityUpdated?.Invoke(this, item); }
/// <summary> /// Handles "RecordingQualityUpdated" of the IVoiceRecorderService object. /// Invokes "RecordingQualityUpdated" to other application's modules. /// </summary> /// <param name="sender">Instance of the VoiceRecorderService class.</param> /// <param name="newValue">New value of the recorder recording quality setting.</param> private void RecordingQualityUpdatedEventHandler(object sender, AudioBitRateType newValue) { RecordingQualityUpdated?.Invoke(this, newValue); }
/// <summary> /// Updates recording quality setting. /// </summary> /// <param name="item">New recording quality value to set.</param> public void UpdateRecordingQuality(AudioBitRateType item) { _service.UpdateRecordingQuality(item); }
public BitRateAudio(AudioBitRateType rate) : base((int)rate) { }
public BitRateAudio(AudioBitRateType rate) : base(Suffix, (int)rate) { }