HRESULT GetCaps(LPDSCAPS lpDSCaps);
Retrieves the capabilities of the hardware device that is represented by the DirectSound object.
·Returns DS_OK if successful, or one of the following error values otherwise:
DSERR_GENERIC DSERR_INVALIDPARAM
lpDSCaps
Address of the DSCAPS structure to contain the capabilities of this sound device.
Information retrieved in the DSCAPS structure describes the maximum capabilities of the sound device and those currently available, such as the number of hardware mixing channels and the amount of onboard sound memory. This information can be used to fine-tune performance and optimize resource allocation.
Because of resource sharing requirements, the maximum capabilities in one area might only be available at the cost of another area. For example, the maximum number of hardware-mixed streaming buffers may only be available if there are no hardware static buffers.