Ejemplo n.º 1
0
        private void Config()
        {
            IWMWriterFileSink pSink;

            WMUtils.WMCreateWriterFileSink(out pSink);

            m_pSink = pSink as IWMWriterFileSink2;
        }
        private void Config()
        {
            IWMWriter         pWriter;
            IWMWriterAdvanced pWriterA;

            WMUtils.WMCreateWriter(IntPtr.Zero, out pWriter);
            pWriterA = pWriter as IWMWriterAdvanced;

            WMUtils.WMCreateWriterFileSink(out m_pSink);

            pWriterA.AddSink(m_pSink);

            m_rcb = m_pSink as IWMRegisterCallback;
        }
        private void Config()
        {
            IWMWriterFileSink pSink;

            WMUtils.WMCreateWriter(IntPtr.Zero, out m_Writer);
            m_Writer.SetProfileByID(g);

            WMUtils.WMCreateWriterFileSink(out pSink);

            IWMWriterAdvanced pWriterA;

            pWriterA = m_Writer as IWMWriterAdvanced;
            pWriterA.AddSink(pSink);
            m_fs3 = pSink as IWMWriterFileSink3;
        }
Ejemplo n.º 4
0
        private void TestSink()
        {
            int i;
            IWMWriterFileSink pSink;
            IWMWriterSink     pSink2;

            WMUtils.WMCreateWriterFileSink(out pSink);

            m_Writer.AddSink(pSink);
            m_Writer.GetSinkCount(out i);
            Debug.Assert(i == 1);

            m_Writer.GetSink(0, out pSink2);
            Debug.Assert(pSink2 != null);

            m_Writer.RemoveSink(pSink2);
            m_Writer.GetSinkCount(out i);
            Debug.Assert(i == 0);
        }
Ejemplo n.º 5
0
 private void Config()
 {
     WMUtils.WMCreateWriterFileSink(out m_pSink);
 }