コード例 #1
0
        public void AddSample(byte[] buffer, int index)
        {
            if (blocks[windowPointer] == null)
                blocks[windowPointer] = new Block();

            blocks[windowPointer].AddSample(buffer, index);

            if (blocks[windowPointer].Done)
            {
                windowPointer++;
                if (Done)
                {
                    SetMeasurements();
                }
            }
        }
コード例 #2
0
 public Window()
 {
     blocks = new Block[windowSize];
 }