示例#1
0
        void TestMisc()
        {
            int hr;

            DvdVideoAttributes pVATR;
            SPRMArray          pRegisterArray;

            hr = m_idi2.GetAllSPRMs(out pRegisterArray);
            DsError.ThrowExceptionForHR(hr);

            Debug.Assert(pRegisterArray.registers[0] == 25966, "GetAllSPRMs");

            hr = m_idi2.GetCurrentVideoAttributes(out pVATR);
            DsError.ThrowExceptionForHR(hr);

            Debug.Assert(pVATR.sourceResolutionX == 720, "GetCurrentVideoAttributes");

            // This won't work for non-karaoke disks
            DvdKaraokeAttributes pKATR = new DvdKaraokeAttributes();

            hr = m_idi2.GetKaraokeAttributes(0, pKATR);
            //DsError.ThrowExceptionForHR(hr);
        }