版本

    其他文档

menu_open
AKRESULT __cdecl AK::SoundEngine::PinEventInStreamCache ( const char *  in_pszEventName,
AkPriority  in_uActivePriority,
AkPriority  in_uInactivePriority  
)

Start streaming the first part of all steamed files referenced by an event into a cache buffer. Caching streams are services when no other streams require the available bandwidth. The files will remain cached until UnpinEventInStreamCache is called, or a higher priority pinned file needs the space and the limit set by uMaxCachePinnedBytes is exceeded. The amount of data from the start of the file that will be pinned to cache in is determined by the prefetch size, which can be set via the authoring tool and stored in the sound banks, or via the low level IO. If this function is called multiple time successively with the same event, then the priority of the caching streams are updated. Note however that priority is passed down to the stream manager on a file-by-file basis, and if another event is pinned to cache that references the same file but with a different priority, then the first priority will be updated with the most recent value. If the event references file that are chosen based on a state group (via a switch container), all files in all states will be cached. Those in the current active state will get cached with active priority, while all other files will get cached with inactive priority

See also:
Parameters:
in_pszEventName  Name of the event
in_uActivePriority  Priority of active stream caching I/O
in_uInactivePriority  Priority of inactive stream caching I/O

此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅