void recorder_MaximumCalculated(object sender, MaxSampleEventArgs e) { SamplePoint newSample = new SamplePoint(); newSample.sampleNum = sampleData.Count; newSample.sampleVal = Math.Max(e.MaxSample, Math.Abs(e.MinSample)); sampleData.Add(newSample); RaisePropertyChanged("SampleData"); RaisePropertyChanged("XRange"); }
void recorder_MaximumCalculated(object sender, MaxSampleEventArgs e) { SamplePoint newSample = new SamplePoint(); newSample.sampleNum = currentTrackSamples.Count; newSample.sampleVal = Math.Max(e.MaxSample, Math.Abs(e.MinSample)); currentTrackSamples.Add(newSample); RaisePropertyChanged("CurrentTrackData"); RaisePropertyChanged("CurrentTrackXRange"); lastPeak = Math.Max(e.MaxSample, Math.Abs(e.MinSample)); RaisePropertyChanged("CurrentInputLevel"); }
void SampleAggregator_MaximumCalculated(object sender, MaxSampleEventArgs e) { waveFormRenderer.AddValue(e.MaxSample, e.MinSample); }