DirectSound Structures

This section contains reference information for the following structures used with DirectSound:

Programming element Description
DSBCAPS This structure specifies the capabilities of a DirectSound buffer object, for use by the IDirectSoundBuffer::GetCaps method.
DSBPOSITIONNOTIFY This structure is used by the IDirectSoundNotify::SetNotificationPositions method.
DSBUFFERDESC This structure describes the necessary characteristics of a new DirectSoundBuffer object.
DSCAPS This structure specifies the capabilities of a DirectSound device for use by the IDirectSound::GetCaps method.
DSCBCAPS This structure is used by the IDirectSoundCaptureBuffer::GetCaps method.
DSCBUFFERDESC This structure is used by the IDirectSoundCapture::CreateCaptureBuffer method.
DSCCAPS This structure is used by the IDirectSoundCapture::GetCaps method.

Note   The memory for all DirectX structures must be initialized to zero before use. In addition, all structures that contain a dwSize member must set the member to the size of the structure, in bytes, before use. The following example performs these tasks on a common structure, DSCAPS.

DSCAPS dscaps; // Cannot use this yet.
ZeroMemory(&dscaps, sizeof(dscaps));
dscaps.dwSize = sizeof(dscaps);
// Now the structure can be used.

See Also

DirectSound Reference

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.