void meteringStream_StreamVolume(object sender, StreamVolumeEventArgs e)
 {
     volumeMeter1.Amplitude = e.MaxSampleValues[0];
     waveformPainter1.AddMax(e.MaxSampleValues[0]);
     if (e.MaxSampleValues.Length > 1)
     {
         volumeMeter2.Amplitude = e.MaxSampleValues[1];
         waveformPainter2.AddMax(e.MaxSampleValues[1]);
     }
 }
 void meteringStream_StreamVolume(object sender, StreamVolumeEventArgs e)
 {
     volumeMeter1.Amplitude = e.MaxSampleValues[0];
     waveformPainter1.AddMax(e.MaxSampleValues[0]);
     if (e.MaxSampleValues.Length > 1)
     {
         volumeMeter2.Amplitude = e.MaxSampleValues[1];
         waveformPainter2.AddMax(e.MaxSampleValues[1]);
     }
 }