ArtofKinect.Common.PointCloudPlayerSource.BufferFrames C# (CSharp) Method

BufferFrames() private method

private BufferFrames ( ) : void
return void
        private void BufferFrames()
        {
            if (Status == PointCloudPlayerStatus.NotLoaded ||
                _filesToLoad.Count == 0)
            {
                return;
            }

            int numFramesToLoadNow = _numFramesToBuffer - (_nextFrameToLoadIndex - CurrentFrameIndex);

            for (int i = 0; i < numFramesToLoadNow; i++)
            {
                if (_nextFrameToLoadIndex > MaxFrameIndex)
                    break;

                string filename = _filesToLoad[_nextFrameToLoadIndex];
                _nextFrameToLoadIndex++;

                _loadingQueue.AddWork(filename);
            }
        }