Exemple #1
0
        private void TestOnStreamSelection()
        {
            IWMReader read;

            m_StreamSelection = false;
            m_Opened          = false;

            WMUtils.WMCreateReader(IntPtr.Zero, Rights.Playback, out read);
            IWMReaderAdvanced ra = read as IWMReaderAdvanced;

            ra.SetReceiveSelectionCallbacks(true);

            read.Open(sFileName, this, new IntPtr(123));
            while (!m_Opened)
            {
                System.Threading.Thread.Sleep(0);
            }

            ChangeSelected(ra);
            while (!m_StreamSelection)
            {
                System.Threading.Thread.Sleep(1);
            }
            read.Stop();
            read.Close();
        }
Exemple #2
0
        private void TestReceiveSelectionCallbacks()
        {
            bool b;

            m_read.SetReceiveSelectionCallbacks(true);
            m_read.GetReceiveSelectionCallbacks(out b);

            Debug.Assert(b);
        }