private void TestEnable() { int hr; hr = m_ss.Enable(0, AMStreamSelectEnableFlags.Enable); DsError.ThrowExceptionForHR(hr); }
public int OnRequestAudioChange() { IAMStreamSelect streamSelect = _sourceFilter as IAMStreamSelect; if (streamSelect != null) { streamSelect.Enable(0, 0); } return(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); }