Esempio n. 1
0
        private void ChangeProps(IWMReader read)
        {
            IWMOutputMediaProps pProps;

            read.GetOutputProps(0, out pProps);
            int         iLen  = 0;
            AMMediaType pType = null;

            pProps.GetMediaType(pType, ref iLen);
            pType            = new AMMediaType();
            pType.formatSize = iLen;
            pProps.GetMediaType(pType, ref iLen);

            pType.temporalCompression = true;
            pType.formatSize          = 20;
            //pType.subType = MediaSubType.WAVE;
            pProps.SetMediaType(pType);
            read.SetOutputProps(0, pProps);
        }
Esempio n. 2
0
        private void TestOutput()
        {
            int iCount, IFCount;
            IWMOutputMediaProps pProp;

            m_read.GetOutputCount(out iCount);
            Debug.Assert(iCount != 0);

            m_read.GetOutputProps(0, out pProp);
            Debug.Assert(pProp != null);
            m_read.SetOutputProps(0, pProp);

            m_read.GetOutputFormatCount(0, out IFCount);
            Debug.Assert(IFCount != 0);

            pProp = null;
            m_read.GetOutputFormat(0, 0, out pProp);
            Debug.Assert(pProp != null);
        }