private void AudioLevelUpdatedProxy(object sender, AudioLevelUpdatedEventArgs e)
        {
            EventHandler <AudioLevelUpdatedEventArgs> audioLevelUpdatedHandler = _audioLevelUpdatedDelegate;

            if (audioLevelUpdatedHandler != null)
            {
                audioLevelUpdatedHandler(this, e);
            }
        }
 private void AudioLevelUpdatedProxy(object sender, AudioLevelUpdatedEventArgs e)
 {
     _audioLevelUpdatedDelegate?.Invoke(this, e);
 }
Exemple #3
0
 private void check_audioLevel(object sender, System.Speech.Recognition.AudioLevelUpdatedEventArgs e)
 {
     // This event handler occurs when the audio level is updated or every interval.
     // e.AudioLevel value ranges from 0 to 100
     audioLevelBar.Value = e.AudioLevel;
 }