public void PeakHoldReset()
        {
            PeakDb     = Double.NegativeInfinity;
            PeakHoldDb = Double.NegativeInfinity;

            if (delayPeakHoldDb != null)
            {
                delayPeakHoldDb.Fill(Double.NegativeInfinity);
            }
        }
        public PeakCalculator(int peakHoldDelayCount)
        {
            PeakDb     = Double.NegativeInfinity;
            PeakHoldDb = Double.NegativeInfinity;

            delay = new Delay(7);

            if (0 < peakHoldDelayCount)
            {
                delayPeakHoldDb = new Delay(peakHoldDelayCount);
                delayPeakHoldDb.Fill(Double.NegativeInfinity);
            }
            else
            {
                delayPeakHoldDb = null;
            }
        }