コード例 #1
0
        private void AudioLevelUpdatedProxy(object sender, AudioLevelUpdatedEventArgs e)
        {
            EventHandler <AudioLevelUpdatedEventArgs> audioLevelUpdatedHandler = _audioLevelUpdatedDelegate;

            if (audioLevelUpdatedHandler != null)
            {
                audioLevelUpdatedHandler(this, e);
            }
        }
コード例 #2
0
 private void AudioLevelUpdatedProxy(object sender, AudioLevelUpdatedEventArgs e)
 {
     _audioLevelUpdatedDelegate?.Invoke(this, e);
 }
コード例 #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;
 }