Microsoft DirectX 8.0 (Visual Basic) |
Describes the capabilities of a buffer object. It is used in the DirectSoundPrimaryBuffer8.GetCaps and DirectSoundSecondaryBuffer8.GetCapsmethod.
Type DSBCAPS lBufferBytes As Long lFlags As CONST_DSBCAPSFLAGS lPlayCpuOverhead As Long lUnlockTransferRate As Long End Type
The DSBCAPS type contains information similar to that found in the DSBUFFERDESC type passed to the DirectSound8.CreateSoundBuffer method.
The lFlags member of the DSBCAPS type contains the same flags used by the DSBUFFERDESC type. The only difference is that in the DSBCAPS type, either the DSBCAPS_LOCHARDWARE or DSBCAPS_LOCSOFTWARE flag is returned, according to the location of the buffer memory. In the DSBUFFERDESC type, these flags are optional and are used to force the buffer to be located in either hardware or software.