Compacting Hardware Memory

As long as it has at least the priority cooperative level, your application can use the IDirectSound::Compact method to move any on-board sound memory into a contiguous block to make the largest portion of free memory available.