Ejemplo n.º 1
0
        private void TestEnable()
        {
            int hr;

            hr = m_ss.Enable(0, AMStreamSelectEnableFlags.Enable);
            DsError.ThrowExceptionForHR(hr);
        }
Ejemplo n.º 2
0
        public int OnRequestAudioChange()
        {
            IAMStreamSelect streamSelect = _sourceFilter as IAMStreamSelect;

            if (streamSelect != null)
            {
                streamSelect.Enable(0, 0);
            }
            return(0);
        }
Ejemplo n.º 3
0
        public static bool SelectStream(this IAMStreamSelect pStreamSelect, int index)
        {
            var result = false;

            int count;
            var hr = pStreamSelect.Count(out count);

            if (DsHlp.SUCCEEDED(hr) && count > index)
            {
                hr     = pStreamSelect.Enable(index, AMStreamSelectEnableFlags.Enable);
                result = DsHlp.SUCCEEDED(hr);
            }

            return(result);
        }