版本
menu

Wwise SDK 2025.1.3
AkCmd_ControlEventStreamCache结构体 参考

#include <AkCommandTypes.h>

Public 属性

AkUniqueID eventID
 ID of event. Stream caching state will be updated for all streaming files referenced by this event. 更多...
 
AkUInt8 isCached
 Activate or de-activate stream caching. When false, any cache buffers previously associated with the event are released. 更多...
 
AkPriority activePriority
 Priority of active stream caching I/O 更多...
 
AkPriority inactivePriority
 Priority of inactive stream caching I/O 更多...
 

详细描述

Allows streaming the first part of all streamed files referenced by an Event into a cache buffer.

Caching streams are serviced when no other streams require the available bandwidth. The files will remain cached until a command disables caching, 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 is determined by the prefetch size. The prefetch size is set via the authoring tool and stored in the sound banks.
It is possible to override the prefetch size stored in the sound bank via the low level IO. For more information see AK::StreamMgr::IAkLowLevelIOHook::BatchOpen() and AkFileSystemFlags.
If this function is called additional times 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 files 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.
inactivePriority is only relevant for events that reference switch containers that are assigned to State Groups. This parameter is ignored for all other events, including events that only reference switch containers that are assigned to Switch Groups. Files that are chosen based on a Switch Group have a different switch value per game object, and are all effectively considered active by the pin-to-cache system.

This command can fail for the following reasons:

  • AK_InvalidParameter if eventID is invalid
  • AK_IDNotFound if eventID refers to an unknown event
参见

在文件 AkCommandTypes.h1249 行定义.


此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅