Summary
Initialize a circular buffer.
Unit
SignalUtils
Declaration
Procedure InitCircularBuffer(BufferSize: integer; IncrementStep: TSample; var State: TCircularBufferState);
Description
Initializes circular buffer State variable. BufferSize is the new buffer size. Buffer holds the actual data and its size is adjusted to match BufferSize. IncrementStep defines the step by how much will the buffer increase when auto-resizing. NewBufferLength = OldBufferLength*IncrementStep; Auto-resizing is performed by
WriteToCircularBuffer routine. The incrementStep parameter will be forced in to interval between 1 and 10.
| Copyright 2008 Dew Research |
http://www.dewresearch.com