public static SelectableStream GetSelectableStream(this IAMStreamSelect pStreamSelect, int index) { SelectableStream result = null; pStreamSelect.InspectStream(index, (mt, name, enabled) => { result = new SelectableStream { Index = index, Name = name, Enabled = enabled, MajorType = mt.majorType, SubType = mt.subType }; }); return(result); }
public void EnumMediaTypes(IPin pin, AMMediaType pinMediaType, Action <AMMediaType> action) { _audioStreams.ForEach(s => _streamSelect.InspectStream(s.Index, (mt, name, enabled) => action(mt))); }