private void TestAllocateForStream() { IWMReader read; m_AllocateForStream = false; m_Opened = false; WMUtils.WMCreateReader(IntPtr.Zero, Rights.Playback, out read); read.Open(sFileName, this, new IntPtr(123)); while (!m_Opened) { System.Threading.Thread.Sleep(0); } IWMReaderAdvanced ra = read as IWMReaderAdvanced; ra.SetAllocateForStream(1, true); ra.SetReceiveStreamSamples(1, true); read.Start(0, 0, 1.0f, IntPtr.Zero); while (!m_AllocateForStream) { System.Threading.Thread.Sleep(0); } read.Stop(); read.Close(); }
private void TestAllocateForStream() { bool b; m_read.SetAllocateForStream(1, true); m_read.GetAllocateForStream(1, out b); Debug.Assert(b); }