예제 #1
0
        private void TestRange()
        {
            m_read.Close();
            DoIndex(IndexerType.TimeCode);
            m_read.Open(sFileName);

            TimeCodeExtensionData st, e;

            st            = new TimeCodeExtensionData();
            e             = new TimeCodeExtensionData();
            st.dwTimecode = 0x300;
            e.dwTimecode  = 0x900;

            try
            {
                m_read.SetRangeByTimecode(2, st, e);
            }
            catch (COMException ce)
            {
                // The concensus is that SetRangeByTimecode() doesn't work, even in c++
                if (Marshal.GetHRForException(ce) != NSResults.E_INVALID_REQUEST)
                {
                    throw;
                }
            }
        }
예제 #2
0
        private void Test1()
        {
            m_read2.Open(sFileName);

            m_read2.SetAllocateForOutput(0, this);

            INSSBuffer pSamp;
            long       l;
            long       d;
            SampleFlag f;
            int        i;
            short      s;

            m_read2.GetNextSample(1, out pSamp, out l, out d, out f, out i, out s);
            m_read2.Close();
        }
예제 #3
0
        private void Config()
        {
            DoIndex(IndexerType.FrameNumbers);

            IWMSyncReader read;

            WMUtils.WMCreateSyncReader(IntPtr.Zero, Rights.Playback, out read);
            m_read = read as IWMSyncReader2;
            m_read.Open(sFileName);
        }