Package com.ms.com.directX |
![]() Previous |
![]() Microsoft Packages |
![]() Index |
![]() Next |
public final class DSBCaps { public int dwSize; public int dwFlags; public int dwBufferBytes; public int dwUnlockTransferRate; public int dwPlayCpuOverhead; }
Specifies the capabilities of a DirectSound buffer object, for use by the GetCaps method.
See also dSoundBuffer.
Fields
The DSBCaps class contains information similar to that found in the DSBufferDesc class passed to the CreateSoundBuffer method, with some additional information. Additional information includes the location of the buffer (hardware or software) and some cost measures (such as the time to download the buffer if located in hardware, and the processing overhead to play the buffer if it is mixed in software).
Note that the dwFlags field contains the same flags used by the DSBufferDesc class. The only difference is that in the DSBCaps class, either the DSBCAPS_LOCHARDWARE or DSBCAPS_LOCSOFTWARE flag will be specified, according to the location of the buffer memory. In the DSBufferDesc class, these flags are optional and are used to force the buffer to be located in either hardware or software.