Platform SDK: DirectX

Tool Objects and Interfaces

[Visual Basic]

The information in this topic pertains only to applications written in C++. See Overview of DirectMusic Classes.

[C++]

Tools are objects that intercept musical messages and process them before they are passed on to the port. All tools (except the output tool implemented by DirectMusic) are application-defined.

Tool

The IDirectMusicTool interface represents a single tool. The methods of this interface are implemented by the application or DLL to define the tool's functionality.

Graph

Tools are collected in a graph, represented by the IDirectMusicGraph interface, which is implemented by both the segment and the performance object. The interface is used for directing messages from one tool to the next, as well as for adding tools to the graph, retrieving pointers to individual tools, and shutting down the graph.