Platform SDK: DirectX

Compacting Hardware Memory

[Visual Basic]

This topic pertains only to applications written in C++.

[C++]

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.