Exemple #1
0
        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;
        }
Exemple #2
0
 public void Clear(FrameIndex lastFrameIndex)
 {
     this._count          = 0;
     this._freeCount      = 0;
     this._lastFrameIndex = lastFrameIndex;
 }