Platforms to show: All Mac Windows Linux Cross-Platform
Back to DirectShowFilterGraphMBS class.
DirectShowFilterGraphMBS.AddFilter(SourceFilter as DirectShowBaseFilterMBS, Name as string = "")
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DirectShow | MBS Win Plugin | 12.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Filter: The filter to add.
Name: name for filter.
Lasterror is set.
The name of the filter can be "", in which case the Filter Graph Manager generates a name. If the name is not "" and is not unique, this method will modify the name in an attempt to generate a new unique name. If this is successful, this method sets lasterror to VFW_S_DUPLICATE_NAME. If it cannot generate a unique name, it sets lasterror to VFW_E_DUPLICATE_NAME.
AddFilter calls the filter's JoinFilterGraph method to inform the filter that it has been added. AddFilter must be called before attempting to use the Connect, ConnectDirect, or Render method to connect or render pins belonging to the added filter.
The Filter Graph Manager holds a reference count on the filter until the filter is removed from the graph or the Filter Graph Manager is released.
DirectShowFilterGraphMBS.Constructor Private
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DirectShow | MBS Win Plugin | 12.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
DirectShowFilterGraphMBS.SetDefaultSyncSource
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DirectShow | MBS Win Plugin | 12.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Lasterror is set.
This method instructs the Filter Graph Manager to choose a reference clock using its default algorithm. For more information about the algorithm that it uses, see Reference Clocks.
Usually you do not need to call this method, because the Filter Graph Manager automatically selects a clock. However, if you call SetSyncSource to override the clock, you can use SetDefaultSyncSource to restore the default clock.
This method fails if the filter graph is running or paused.
The items on this page are in the following plugins: MBS Win Plugin.