Microsoft DirectX 8.1 (C++)

IDirectMusicLoader8::ClearCache

The ClearCache method tells the loader to release all references to a particular type of object.

Syntax

HRESULT ClearCache(
  REFGUID rguidClass 
);

Parameters

rguidClass

Reference to (C++) or address of (C) the identifier of the class of objects to clear, or GUID_DirectMusicAllTypes to clear all types. For a list of standard loadable classes, see IDirectMusicLoader8.

Return Values

The method returns S_OK.

Remarks

This method clears all objects that are currently being held, but does not turn off caching. Use the IDirectMusicLoader8::EnableCache method to turn off automatic caching.

To clear a single object from the cache, call the IDirectMusicLoader8::ReleaseObject method.

Requirements

  Header: Declared in dmusici.h.

See Also