예제 #1
0
        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);
        }
예제 #2
0
 public void EnumMediaTypes(IPin pin, AMMediaType pinMediaType, Action <AMMediaType> action)
 {
     _audioStreams.ForEach(s => _streamSelect.InspectStream(s.Index, (mt, name, enabled) => action(mt)));
 }