Property | Type | Description | |
---|---|---|---|
SourceCollection | System | ||
SourceCollection | System |
Method | Description | |
---|---|---|
Clear ( ) : void |
Empty the collection.
|
|
Dispose ( ) : void |
Release unmanaged resources.
|
|
addFromGraph ( ICaptureGraphBuilder2 graphBuilder, IBaseFilter deviceFilter, bool isVideoDevice ) : void |
Populate the collection from a filter graph.
|
|
this ( int index ) : DirectX.Capture.Source |
Get the source at the specified index.
|
Method | Description | |
---|---|---|
findAudioSources ( ICaptureGraphBuilder2 graphBuilder, IBaseFilter deviceFilter ) : |
||
findCrossbarSources ( ICaptureGraphBuilder2 graphBuilder, IAMCrossbar crossbar, bool isVideoDevice ) : |
Populate the internal InnerList with sources/physical connectors found on the crossbars. Each instance of this class is limited to video only or audio only sources ( specified by the isVideoDevice parameter on the constructor) so we check each source before adding it to the list.
|
|
findCrossbars ( ICaptureGraphBuilder2 graphBuilder, IBaseFilter deviceFilter ) : |
Retrieve a list of crossbar filters in the graph. Most hardware devices should have a maximum of 2 crossbars, one for video and another for audio.
|
Method | Description | |
---|---|---|
SourceCollection ( ) : System |
Initialize collection with no sources.
|
|
SourceCollection ( ICaptureGraphBuilder2 graphBuilder, IBaseFilter deviceFilter, bool isVideoDevice ) : System |
Initialize collection with sources from graph.
|
public addFromGraph ( ICaptureGraphBuilder2 graphBuilder, IBaseFilter deviceFilter, bool isVideoDevice ) : void | ||
graphBuilder | ICaptureGraphBuilder2 | |
deviceFilter | IBaseFilter | |
isVideoDevice | bool | |
return | void |
protected findAudioSources ( ICaptureGraphBuilder2 graphBuilder, IBaseFilter deviceFilter ) : |
||
graphBuilder | ICaptureGraphBuilder2 | |
deviceFilter | IBaseFilter | |
return |
protected findCrossbarSources ( ICaptureGraphBuilder2 graphBuilder, IAMCrossbar crossbar, bool isVideoDevice ) : |
||
graphBuilder | ICaptureGraphBuilder2 | |
crossbar | IAMCrossbar | |
isVideoDevice | bool | |
return |
protected findCrossbars ( ICaptureGraphBuilder2 graphBuilder, IBaseFilter deviceFilter ) : |
||
graphBuilder | ICaptureGraphBuilder2 | |
deviceFilter | IBaseFilter | |
return |
public this ( int index ) : DirectX.Capture.Source | ||
index | int | |
return | DirectX.Capture.Source |