private void AggregatorReportHandler(object sender, SamplesReportEventArgs e) { var value = Math.Max(e.MaxSample, Math.Abs(e.MinSample)) * 100; OnProgressEvent(new RecordingProgressEventArgs { VolumeLevelAsPercentage = GetDampedVolumeLevel(value) }); }
private void OnReportEvent(SamplesReportEventArgs e) { ReportEvent?.Invoke(this, e); }