Microsoft DirectX 8.0 (C++)

IDirectMusic8

The IDirectMusic8 interface provides methods for managing buffers, ports, and the master clock. There should not be more than one instance of this interface per application.

IDirectMusic8 supersedes IDirectMusic and adds a new method, SetExternalMasterClock.

There is no helper function to create this interface. Applications use the COM CoCreateInstance function, the IDirectMusicPerformance8::Init method, or the IDirectMusicPerformance8::InitAudio method to create a DirectMusic object.

The methods of the IDirectMusic8 interface can be organized into the following groups:

Activation Activate
Buffers CreateMusicBuffer
Linkage SetDirectSound
Ports CreatePort
  EnumPort
  GetDefaultPort
Timing EnumMasterClock
  GetMasterClock
  SetExternalMasterClock
  SetMasterClock

All COM interfaces inherit the IUnknown interface methods. This interface supports the following three methods:

IUnknown AddRef
  QueryInterface
  Release

The LPDIRECTMUSIC8 type is defined as a pointer to the IDirectMusic8 interface.

typedef IDirectMusic8 *LPDIRECTMUSIC8;

Requirements

  Header: Declared in dmusicc.h.