This section contains reference information for the following structures used with DirectSound:
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; // Can't use this yet.
ZeroMemory(&dscaps, sizeof(dscaps));
dscaps.dwSize = sizeof(dscaps);
// Now the structure can be used.
.
.