Microsoft DirectX 9.0

IFilterGraph Interface

The IFilterGraph interface provides methods for building a filter graph. An application can use it to add filters to the graph, connect or disconnect filters, remove filters, and perform other basic operations. However, the IGraphBuilder interface inherits from this interface and provides additional methods that are more sophisticated. Therefore, applications should use IGraphBuilder rather than using IFilterGraph directly.

The filter graph manager implements this interface.

In addition to the methods inherited from IUnknown, the IFilterGraph interface exposes the following methods.

Method Description
AddFilter Adds a filter to the graph.
RemoveFilter Removes a filter from the graph.
EnumFilters Provides an enumerator for all filters in the graph.
FindFilterByName Finds a filter that was added with a specified name.
ConnectDirect Connects two pins directly (without intervening filters).
Reconnect Breaks the existing pin connection and reconnects it to the same pin.
Disconnect Disconnects a specified pin.
SetDefaultSyncSource Sets the reference clock to the default clock.