バージョン

menu_open
Wwise SDK 2023.1.2

◆ PinFileInCache()

virtual AKRESULT AK::IAkStreamMgr::PinFileInCache ( AkFileID  in_fileID,
AkFileSystemFlags in_pFSFlags,
AkPriority  in_uPriority 
)
pure virtual

Start streaming the first "in_pFSFlags->uNumBytesPrefetch" bytes of the file with id "in_fileID" into cache. The stream will be scheduled only after all regular streams (not file caching streams) are serviced. The file will stay cached until either the UnpinFileInCache is called, or the limit as set by uMaxCachePinnedBytes is reached and another higher priority file (in_uPriority) needs the space.

注釈
PinFileInCache()/UnpinFileInCache()/UpdateCachingPriority() are typically not used directly, but instead used via the AK::SoundEngine::PinEventInStreamCache() API. Using PinFileInCache() directly does not allow users to take advantage of sound bank data. The file and the number of bytes they wish to cache must be explicitly specified.
参照
引数
in_fileIDApplication-defined ID
in_pFSFlagsSpecial file system flags (can NOT pass NULL)
in_uPriorityStream caching priority. Note: Caching requests only get serviced after all regular streaming requests.

このページはお役に立ちましたか?

サポートは必要ですか?

ご質問や問題、ご不明点はございますか?お気軽にお問い合わせください。

サポートページをご確認ください

あなたのプロジェクトについて教えてください。ご不明な点はありませんか。

プロジェクトを登録していただくことで、ご利用開始のサポートをいたします。

Wwiseからはじめよう