Platform SDK: DirectX |
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;
Windows NT/2000: Requires Windows NT 4.0 SP3 or later.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in dsound.h.
Import Library: Use dsound.lib.