public PacketJitterBuffer(ILogger logger, int capacity) { this._packets = new ReplicationPacket[capacity]; this._indices = new int[capacity]; this._freeIndices = new int[capacity]; this._nextWriteIndex = new CircularBufferIndex(0, capacity); this._count = 0; this._freeCount = 0; this._logger = logger; this._lastFrameIndex = FrameIndex.Zero; }
public void Clear(FrameIndex lastFrameIndex) { this._count = 0; this._freeCount = 0; this._lastFrameIndex = lastFrameIndex; }