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); } }
static void Node_SampleReceived(object sender, SampleReceivedEventArgs e) { Console.WriteLine("sample!"); }