|Microsoft DirectX 9.0|
The CollectGarbage method removes from the cache objects that are no longer in use.
When an application calls IDirectMusicLoader8::ReleaseObject, the object is removed from the cache, and any objects it references become candidates for removal. IDirectMusicLoader8::CollectGarbage finds cached objects that are no longer being used by other objects, removes them from the cache, and releases them from memory.
Header: Declared in dmusici.h.