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; } } }
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(); }