Microsoft SDK for Java

compact

This method of the DirectSound Class 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.

Syntax

public void compact();

Remarks

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 setCooperativeLevel method.) This method will fail if any operations are in progress.

See Also

setCooperativeLevel

© 1999 Microsoft Corporation. All rights reserved. Terms of use.