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:

Initialization Initialize
  SetCooperativeLevel
Buffer creation  CreateSoundBuffer
  DuplicateSoundBuffer
Device capabilities  GetCaps
Memory management  Compact
Speaker Configuration  GetSpeakerConfig
  SetSpeakerConfig

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

IUnknown AddRef
  QueryInterface
  Release

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

typedef struct IDirectSound    *LPDIRECTSOUND;

Requirements

Header: Declared in DSound.h.

Library: Use Dsound.lib.

See Also

DirectSoundCreate