Esempio n. 1
0
 private void OnSampleReceived(object sender, SampleReceivedEventArgs e)
 {
     if (_recorder != null && _recorder.IsCapturing && !App.RunningInBackground)
     {
         DurationText    = TimeSpan.FromSeconds(e.Duration).ToString();
         MicrophoneLevel = (int)(e.Level * 100);
     }
 }
Esempio n. 2
0
 static void Node_SampleReceived(object sender, SampleReceivedEventArgs e)
 {
     Console.WriteLine("sample!");
 }