public void Reset() { mSum = 0; mOldTime = -1; mOldD = 0; if (mBuffer != null) for (int i = 0; i < mBuffer.Length; i++) mBuffer[i] = 0; mPtr = 0; }