HRESULT Compact();
Moves the unused portions of onboard sound memory, if any, to a contiguous block so that the largest portion of free memory will be available.
·Returns DS_OK if successful, or one of the following error values otherwise:
DSERR_INVALIDPARAM | DSERR_PRIOLEVELNEEDED |
DSERR_UNINITIALIZED |
If the application calls this method, it must have exclusive cooperation with the DirectSound object. (To get exclusive access, specify DSSCL_EXCLUSIVE in a call to the IDirectSound::SetCooperativeLevel method.) This method will fail if any operations are in progress.