Microsoft DirectX 8.0 (C++) |
Releases the loader's reference to the object.
HRESULT ReleaseObject( IDirectMusicObject * pObject );
If the method succeeds, the return value is S_OK, or S_FALSE if the object has already been released or cannot be found in the cache.
If it fails, the method can return E_POINTER.
ReleaseObject is the reciprocal of IDirectMusicLoader8::CacheObject.
Objects can be cached explicitly by using the CacheObject method, or automatically by using the IDirectMusicLoader8::EnableCache method.
To tell the loader to flush all objects of a particular type, call the IDirectMusicLoader8::ClearCache method.
Header: Declared in dmusici.h.
IDirectMusicLoader8::ReleaseObjectByUnknown, DirectMusicLoader8::GetObject, Cache Management