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(); } } }
public Window() { blocks = new Block[windowSize]; }