버전

menu_open
Wwise SDK 2018.1.11

◆ PinEventInStreamCache() [1/2]

AKRESULT __cdecl AK::SoundEngine::PinEventInStreamCache ( AkUniqueID  in_eventID,
AkPriority  in_uActivePriority,
AkPriority  in_uInactivePriority 
)

Starts 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 UnpinEventInStreamCache is called, or a higher priority pinned file needs the space and the limit set by uMaxCachePinnedBytes is exceeded.

Remarks
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::IAkFileLocationResolver::Open() 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.
in_uInactivePriority 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.
See also
Parameters
in_eventID Unique ID of the event
in_uActivePriority Priority of active stream caching I/O
in_uInactivePriority Priority of inactive stream caching I/O

이 페이지가 도움이 되었나요?

지원이 필요하신가요?

질문이 있으신가요? 문제를 겪고 계신가요? 더 많은 정보가 필요하신가요? 저희에게 문의해주시면 도와드리겠습니다!

지원 페이지를 방문해 주세요

작업하는 프로젝트에 대해 알려주세요. 언제든지 도와드릴 준비가 되어 있습니다.

프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.

Wwise를 시작해 보세요