Table of Contents

virtual AKRESULT AK::IAkStreamMgr::UpdateCachingPriority ( AkFileID  in_fileID,
AkPriority  in_uPriority,
AkPriority  in_uOldPriority  
) [pure virtual]

Update the priority of the caching stream. Higher priority streams will be serviced before lower priority caching streams, and will be more likely to stay in memory if the cache pin limit as set by "uMaxCachePinnedBytes" is reached.

PinFileInCache()/UnpinFileInCache()/UpdateCachingPriority() are typically not used directly, but instead used via the AK::SoundEngine::PinEventInStreamCache() API. Using UpdateCachingPriority() directly does not allow users to take advantage of sound bank data. The file must be explicitly specified.
See also:
in_fileID  Application-defined ID
in_uPriority  Priority
in_uOldPriority  Old priority