예제 #1
0
        public SampleManager()
        {
            ResourcePool.GetPool().SetFactory(new SampleBufferFactory());

            mNumSamples = 0;

            mOldestFullFrame = 0;
            mNumFullFrames   = 0;
            mFullFrameQuota  = 10000;
            mMaxFullFrames   = mFullFrameQuota + 2;

            mCurrentFrame   = null;
            mLastFrame      = null;
            mFrames         = new ArrayList();
            mFrameObservers = new ArrayList();

            mMaxIdentifiers     = 512;
            mIdentiferCount     = 0;
            mFrameNetworkErrors = 0;

            ErrorHandler.OnError += new ErrorEvent(ErrorHandler_OnError);
        }
예제 #2
0
 private void InvalidateHandle()
 {
     mIsInitialized = false;
     mResource      = null;
     ResourcePool.GetPool().mReleaseCount++;
 }