Ejemplo n.º 1
0
 private void RecorderOnAudioData(object sender, AudioDataEventArgs e)
 {
     var n = (int) (Math.Abs(e.MaxValue)*100f);
     if (n > 100) n = 100;
     if (n < 0) n = 0;
     progressBar1.Value = n;
     if (e.IsRecoring)
         labelRec.Text = Resources.Recording;
     else
         labelRec.Text = "";
     OnAudioDataReceived(e);
 }
Ejemplo n.º 2
0
 private void CtrlOnAudioDataReceived(object sender, AudioDataEventArgs e)
 {
     if (e.IsRecoring)
     {
         if (notifyIcon1.Tag == null)
         {
             notifyIcon1.Icon = Resources.Green;
             notifyIcon1.Tag = 1;
         }
     }
     else
     {
         if (notifyIcon1.Tag != null)
         {
             notifyIcon1.Icon = Resources.Blue;
             notifyIcon1.Tag = null;
         }
     }
 }
Ejemplo n.º 3
0
 protected virtual void OnAudioData(AudioDataEventArgs e)
 {
     AudioData?.Invoke(this, e);
 }
Ejemplo n.º 4
0
 protected virtual void OnAudioDataReceived(AudioDataEventArgs e)
 {
     AudioDataReceived?.Invoke(this, e);
 }