/// <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);
        }
Esempio n. 2
0
 /// <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);
 }
Esempio n. 3
0
 /// <summary>
 /// Updates recording quality setting.
 /// </summary>
 /// <param name="item">New recording quality value to set.</param>
 public void UpdateRecordingQuality(AudioBitRateType item)
 {
     _service.UpdateRecordingQuality(item);
 }
Esempio n. 4
0
 public BitRateAudio(AudioBitRateType rate)
     : base((int)rate)
 {
 }
Esempio n. 5
0
 public BitRateAudio(AudioBitRateType rate)
     : base(Suffix, (int)rate)
 {
 }
Esempio n. 6
0
 public BitRateAudio(AudioBitRateType rate)
     : base(Suffix, (int)rate)
 {
 }
Esempio n. 7
0
 public BitRateAudio(AudioBitRateType rate)
     : base((int)rate)
 {
 }