Beispiel #1
0
        public void AllocateForOutputEx(int dwOutputNum, int cbBuffer, out INSSBuffer ppBuffer, SampleFlagEx dwFlags, long cnsSampleTime, long cnsSampleDuration, IntPtr pvContext)
        {
            m_Status |= 2;
            TempBuff t = new TempBuff(cbBuffer);

            ppBuffer = t as INSSBuffer;
        }
Beispiel #2
0
        public void AllocateForStreamEx(short wStreamNum, int cbBuffer, out INSSBuffer ppBuffer, SampleFlagEx dwFlags, long cnsSampleTime, long cnsSampleDuration, IntPtr pvContext)
        {
            m_Status |= 1;
            TempBuff t = new TempBuff(cbBuffer);

            ppBuffer = t as INSSBuffer;
        }
        public void AllocateForPostView(short wStreamNum, int cbBuffer, out INSSBuffer ppBuffer, IntPtr pvContext)
        {
            m_Alloc = true;
            TempBuff b = new TempBuff(100000);

            ppBuffer = b as INSSBuffer;
        }
Beispiel #4
0
        public void AllocateForStream(short wStreamNum, int cbBuffer, out INSSBuffer ppBuffer, IntPtr pvContext)
        {
            m_AllocateForStream = true;
            Debug.WriteLine("OnStreamSample");
            TempBuff t = new TempBuff(cbBuffer);

            ppBuffer = t as INSSBuffer;
        }
        public void AllocateDataUnit(int cbDataUnit, out INSSBuffer ppDataUnit)
        {
            if (cbDataUnit > 0)
            {
                m_AllocateDataUnit = true;
            }
            TempBuff t = new TempBuff(cbDataUnit);

            ppDataUnit = t as INSSBuffer;
        }
        private void TestPreProc()
        {
            int       i;
            const int iUseSize = 126720;
            TempBuff  t        = new TempBuff(iUseSize);

            m_preproc.GetMaxPreprocessingPasses(0, 0, out i);
            m_preproc.SetNumPreprocessingPasses(0, 0, i);
            m_preproc.BeginPreprocessingPass(0, 0);

            t.SetLength(iUseSize);
            m_preproc.PreprocessSample(0, 0, 0, t);
            m_preproc.EndPreprocessingPass(0, 0);
        }
        public void AllocateDataUnit(int cbDataUnit, out INSSBuffer ppDataUnit)
        {
            TempBuff t = new TempBuff(cbDataUnit);

            ppDataUnit = t as INSSBuffer;
        }