IDirectSound

Applications use the methods of the IDirectSound interface to create DirectSound objects and set up the environment. This section is a reference to the methods of this interface.

The interface is obtained by using the DirectSoundCreate function.

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

Allocating memory Compact
Initialize
Creating buffers CreateSoundBuffer
DuplicateSoundBuffer
SetCooperativeLevel
Device capabilities GetCaps
Speaker configuration GetSpeakerConfig
SetSpeakerConfig

The IDirectSound interface, like all COM interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods:

AddRef
QueryInterface
Release

The LPDIRECTSOUND type is defined as a pointer to the IDirectSound interface:

typedef struct IDirectSound    *LPDIRECTSOUND;