示例#1
0
        private void TestCommit()
        {
            int hr;

            hr = m_ma.Commit();
            DsError.ThrowExceptionForHR(hr);
        }
示例#2
0
        private void TestAllocator()
        {
            int hr;
            AllocatorProperties pProps       = new AllocatorProperties();
            AllocatorProperties pActualProps = new AllocatorProperties();

            pProps.cbAlign  = 1;
            pProps.cbBuffer = 512 * 2;
            pProps.cbPrefix = 0;
            pProps.cBuffers = 5;

            hr = m_iar.RequestAllocator(null, pProps, out m_pActual);
            DsError.ThrowExceptionForHR(hr);

            hr = m_pActual.SetProperties(pProps, pActualProps);
            DsError.ThrowExceptionForHR(hr);

            hr = m_pActual.Commit();
            DsError.ThrowExceptionForHR(hr);
        }