Microsoft DirectX 8.1 (C++)

IDirectMusicCollection8

The IDirectMusicCollection8 interface manages an instance of a DLS file. The collection provides methods to access instruments and download them to the synthesizer by means of the IDirectMusicPort8 interface.

IDirectMusicCollection8 is a type definition for IDirectMusicCollection. The two interface names are interchangeable.

The DirectMusicCollection object also supports the IDirectMusicObject8 and IPersistStream interfaces for loading its data.

For more information on how to work with collections, see Using Instrument Collections.

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

Method Description
EnumInstrument Retrieves the patch and name of an instrument by its index in the collection.
GetInstrument Retrieves an instrument from a collection by its patch number.

Requirements

  Header: Declared in dmusicc.h.