Platform SDK: DirectX |
The IDirectMusic interface provides methods for managing buffers, ports, and the master clock. There should not be more than one instance of this interface per application.
Note There is no helper function to create this interface. Applications use the COM CoCreateInstance function or the IDirectMusicPerformance::Init method to create a DirectMusic object.
The methods of the IDirectMusic interface can be organized into the following groups:
Activation | Activate |
Buffers | CreateMusicBuffer |
Linkage | SetDirectSound |
Ports | CreatePort |
EnumPort | |
GetDefaultPort | |
Timing | EnumMasterClock |
GetMasterClock | |
SetMasterClock |
All COM interfaces inherit the IUnknown interface methods. This interface supports the following three methods:
IUnknown | AddRef |
QueryInterface | |
Release |
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in dmusicc.h.