Wwise SDK
_ak_stream_mgr_module_8h_source
버전
menu
|
Wwise SDK 2025.1.4
|
AkStreamMgrModule.h
이 파일의 문서화 페이지로 가기
30 /// Contains the default Stream Manager's implementation-specific interfaces that altogether constitute
31 /// the Low-Level I/O submodule. This submodule needs to be implemented by the game. All I/O requests
90 /// Structure for synchronous transfers handshaking with the Low-Level I/O. Used with blocking I/O hooks.
101 /// Callback function prototype definition used for asynchronous I/O transfers between the Stream Manager and the Low-Level IO.
103 /// - If you pass in_eResult of AK_Fail, all streams awaiting for this transfer are marked as invalid and will stop. An "IO error" notification is posted to the capture log.
104 /// - If the transfer was cancelled by the Stream Manager while it was in the Low-Level IO, you must return AK_Success, whether
105 /// you performed the operation or not. The Stream Manager knows that it was cancelled, so it will not try to use it after you call it back.
114 /// Structure for asynchronous transfers handshaking with the Low-Level I/O. Extends AkIOTransferInfo.
138 /// Structure used by Low Level IO Hooks (IAkLowLevelIOHook) to pass and retreive information on files to be opened by the IO hook.
139 /// Please see AK::StreamMgr::IAkLowLevelIOHook::BatchOpen for more information about the sementics of the Open operation.
176 AkAsyncFileOpenData(const AkOSChar* in_pszFileName, AkOpenMode in_eOpenMode = AK_OpenModeRead, AkFileSystemFlags* in_pFlags = NULL)
185 AkAsyncFileOpenData(AkFileID in_idFile, AkOpenMode in_eOpenMode = AK_OpenModeRead, AkFileSystemFlags* in_pFlags = NULL)
223 /// Audiokinetic Stream Manager's implementation-specific interfaces of the Low-Level IO submodule.
231 /// from the main audio thread. Also, it is assumed that all operations are asynchronous although
242 /// Cancel() is provided in order to inform you that the streaming device will flush this transfer
311 /// - It is possible to mix synchronous and asynchronous file opens, as long as all pCallbacks are eventually called.
312 /// - When implementing this function, make sure to process all items even if one fails to be dispatched or to open.
313 /// - Pointers in in_ppItems will stay valid until pCallback is called to signal the operation result.
321 /// - Queue up multiple read requests at once, using the provided array of in_pTransferItems. There will
323 /// - The pCallback within each BatchIoTransferItem::pTransferInfo must be called when completed.
325 /// device is notified through the callback. However, the array of in_pTransferItems will not be valid.
326 /// - File position passed in each BatchIoTransferItem::pTransferInfo takes the offset of this file relative
337 /// - Queue up multiple write requests at once, using the provided array of in_pTransferItems. There will
339 /// - The pCallback within each BatchIoTransferItem::pTransferInfo must be called when completed.
341 /// device is notified through the callback. However, the array of in_pTransferItems will not be valid.
342 /// - File position passed in each BatchIoTransferItem::pTransferInfo takes the offset of this file relative
351 /// This function is called to provide information when file related errors occur. The base paths known by this IO hook should be returned in out_searchedPath.
366 /// registered to the Stream Manager (using AK::StreamMgr::SetFileLocationResolver()). Its purpose
372 /// If you wish to create multiple devices, then you should have a separate object that implements
373 /// AK::StreamMgr::IAkFileLocationResolver and registers to the Stream Manager as such. This object
374 /// will be used to dispatch the file open request to the appropriate device. The strategy you will
388 /// If your File Resolver only handles one device, return AK_NotImplemented and the StreamMgr will use the only device configured.
389 /// If it handles multiple devices, you can base the decision on where to get the file on any kind of heuristic:
394 /// - AK_Success if there is a device to delegate the Open() call to. io_idDevice should be set to the proper AkDeviceID (as returned by AK::StreamMgr::CreateDevice).
396 /// - AK_NotImplemented if there is only one device in the system and file resolution is trivial.
456 /// \return The device ID. AK_INVALID_DEVICE_ID if there was an error and it could not be created.
462 /// - The returned device ID should be kept by the Low-Level IO, to assign it to file descriptors
467 /// - AK_InvalidParameter: One of the settings in AkDeviceSettings is out of range. Check asserts or debug console.
479 /// \warning This function is not thread-safe. No stream should exist for that device when it is destroyed.
485 /// This should only be called in single-threaded environments where an I/O device cannot spawn a thread.
504 /// Set the current language once and only once, here. The language name is stored in a static buffer
506 /// AK::StreamMgr::IAkFileLocationResolver implementations query this string. They may use it to
507 /// construct a file path (for e.g. SDK/samples/SoundEngine/Common/AkFileLocationBase.cpp), or to
508 /// find a language-specific file within a look-up table (for e.g. SDK/samples/SoundEngine/Common/AkFilePackageLUT.cpp).
509 /// Pass a valid null-terminated string, without a trailing slash or backslash. Empty strings are accepted.
512 /// \return AK_Success if successful (if language string has less than AK_MAX_LANGUAGE_NAME_SIZE characters). AK_Fail otherwise.
521 /// Get the current language. The language name is stored in a static buffer inside the Stream Manager,
522 /// with AK::StreamMgr::SetCurrentLanguage(). In order to resolve localized (language-specific) file location,
523 /// AK::StreamMgr::IAkFileLocationResolver implementations query this string. They may use it to
524 /// construct a file path (for e.g. SDK/samples/SoundEngine/Common/AkFileLocationBase.cpp), or to
525 /// find a language-specific file within a look-up table (for e.g. SDK/samples/SoundEngine/Common/AkFilePackageLUT.cpp).
526 /// \return Current language in string format, as specified in AK::StreamMgr::SetCurrentLanguage().
void * pCookie
Reserved. The I/O device uses this cookie to retrieve the owner of the transfer.
Definition: AkStreamMgrModule.h:123
AkUInt32 uIOMemoryAlignment
I/O memory alignment. It is passed directly to AK::MemoryMgr::Malign().
Definition: AkStreamMgrModule.h:64
Definition: AkStreamMgrModule.h:120
Definition: AkPlatformFuncs.h:45
Definition: AkStreamMgrModule.h:80
virtual void BatchRead(AkUInt32 in_uNumTransfers, BatchIoTransferItem *in_pTransferItems)=0
AkFileDesc * pFileDesc
Definition: AkStreamMgrModule.h:302
AKSOUNDENGINE_API AKRESULT DestroyDevice(AkDeviceID in_deviceID)
Definition: IAkStreamMgr.h:189
AKSOUNDENGINE_API AKRESULT SetCurrentLanguage(const AkOSChar *in_pszLanguageName)
virtual AkUInt32 GetDeviceData()=0
AkAsyncFileOpenData(AkFileID in_idFile, AkOpenMode in_eOpenMode=AK_OpenModeRead, AkFileSystemFlags *in_pFlags=NULL)
Functions used to manage optional stream name. The name will be used when sending stream information ...
Definition: AkStreamMgrModule.h:185
void(* AkLanguageChangeHandler)(const AkOSChar *const in_pLanguageName, void *in_pCookie)
Definition: AkStreamMgrModule.h:537
AkUInt32 uMaxCachePinnedBytes
Maximum number of bytes that can be "pinned" using AK::SoundEngine::PinEventInStreamCache() or AK::IA...
Definition: AkStreamMgrModule.h:71
AkUInt32 uRequestedSize
Exact number of requested bytes for this transfer. Always equal to or smaller than uBufferSize.
Definition: AkStreamMgrModule.h:96
Definition: IAkStreamMgr.h:688
AkAsyncFileOpenData(const AkFileOpenData &in_copy)
Definition: AkStreamMgrModule.h:147
AkUInt32 uMaxConcurrentIO
Maximum number of transfers that can be sent simultaneously to the Low-Level I/O.
Definition: AkStreamMgrModule.h:69
AkReal32 fTargetAutoStmBufferLength
Targetted automatic stream buffer length (ms). When a stream reaches that buffering,...
Definition: AkStreamMgrModule.h:68
bool bUseStreamCache
If true, the device attempts to reuse I/O buffers that have already been streamed from disk....
Definition: AkStreamMgrModule.h:70
AKSOUNDENGINE_API void GetDefaultSettings(AkStreamMgrSettings &out_settings)
virtual ~IAkLowLevelIOHook()
Virtual destructor on interface to avoid warnings.
Definition: AkStreamMgrModule.h:248
AkAsyncFileOpenData(const AkOSChar *in_pszFileName, AkOpenMode in_eOpenMode=AK_OpenModeRead, AkFileSystemFlags *in_pFlags=NULL)
Definition: AkStreamMgrModule.h:176
AkPriority priority
Operation priority (at the time it was scheduled and sent to the Low-Level I/O). Range is [AK_MIN_PRI...
Definition: AkStreamMgrModule.h:215
void(* AkIOCallback)(AkAsyncIOTransferInfo *in_pTransferInfo, AKRESULT in_eResult)
Definition: AkStreamMgrModule.h:109
AkUInt32 ePoolAttributes
Attributes for I/O memory. Here, specify the allocation type (AkMemType_Device, and so on)....
Definition: AkStreamMgrModule.h:65
Definition: AkStreamMgrModule.h:59
AkUInt32 uBufferSize
Size of the buffer in which the I/O hook can write to.
Definition: AkStreamMgrModule.h:95
void(* AkFileOpenCallback)(AkAsyncFileOpenData *in_pOpenInfo, AKRESULT in_eResult)
Definition: AkStreamMgrModule.h:133
void * pCookie
Reserved. Pass this unchanged to the callback function. The I/O device uses this cookie to retrieve t...
Definition: AkStreamMgrModule.h:199
void * pCustomData
Convenience pointer for the IO hook implementer. Useful for additional data used in asynchronous impl...
Definition: AkStreamMgrModule.h:201
AkAsyncFileOpenData(const AkAsyncFileOpenData &in_copy)
Definition: AkStreamMgrModule.h:157
AkUInt32 uGranularity
I/O requests granularity (typical bytes/request).
Definition: AkStreamMgrModule.h:66
Definition: AkStreamMgrModule.h:213
virtual void GetDeviceDesc(AkDeviceDesc &out_deviceDesc)=0
AKSOUNDENGINE_API AKRESULT PerformIO()
AkFileOpenCallback pCallback
Callback function used to notify the high-level device when Open is done
Definition: AkStreamMgrModule.h:198
AKRESULT SetStreamName(const AkOSChar *in_pszStreamName)
virtual AKRESULT GetNextPreferredDevice(AkAsyncFileOpenData &in_FileOpen, AkDeviceID &io_idDevice)
Definition: AkStreamMgrModule.h:399
AKSOUNDENGINE_API AKRESULT CreateDevice(const AkDeviceSettings &in_settings, IAkLowLevelIOHook *in_pLowLevelHook, AkDeviceID &out_idDevice)
virtual AKRESULT Close(AkFileDesc *in_pFileDesc)=0
~AkAsyncFileOpenData()
virtual AkUInt32 GetBlockSize(AkFileDesc &in_fileDesc)=0
Definition: AkStreamMgrModule.h:93
const AkOSChar * GetStreamName() const
Definition: AkStreamMgrModule.h:196
Definition: AkStreamMgrModule.h:144
AkIOCallback pCallback
Callback function used to notify the high-level device when the transfer is complete.
Definition: AkStreamMgrModule.h:122
AKSOUNDENGINE_API IAkFileLocationResolver * GetFileLocationResolver()
virtual void BatchWrite(AkUInt32 in_uNumTransfers, BatchIoTransferItem *in_pTransferItems)=0
AKSOUNDENGINE_API IAkStreamMgr * Create(const AkStreamMgrSettings &in_settings)
AKSOUNDENGINE_API void FlushAllCaches()
AkIoHeuristics ioHeuristics
Definition: AkStreamMgrModule.h:303
AKSOUNDENGINE_API void GetDefaultDeviceSettings(AkDeviceSettings &out_settings)
AKSOUNDENGINE_API void SetFileLocationResolver(IAkFileLocationResolver *in_pFileLocationResolver)
AkFileDesc * pFileDesc
File Descriptor to fill once the Open operation is complete.
Definition: AkStreamMgrModule.h:200
virtual void BatchOpen(AkUInt32 in_uNumFiles, AkAsyncFileOpenData **in_ppItems)=0
AKSOUNDENGINE_API void RemoveLanguageChangeObserver(void *in_pCookie)
AKSOUNDENGINE_API AKRESULT AddLanguageChangeObserver(AkLanguageChangeHandler in_handler, void *in_pCookie)
virtual ~IAkFileLocationResolver()
Virtual destructor on interface to avoid warnings.
Definition: AkStreamMgrModule.h:383
AkUInt32 uIOMemorySize
Size of memory for I/O (for automatic streams). It is passed directly to AK::MemoryMgr::Malign(),...
Definition: AkStreamMgrModule.h:63
Definition: AkStreamMgrModule.h:50
virtual AKRESULT OutputSearchedPaths(AKRESULT in_result, const AkFileOpenData &in_FileOpen, AkOSChar *out_searchedPath, AkInt32 in_pathSize)
This function is called to provide information when file related errors occur. The base paths known b...
Definition: AkStreamMgrModule.h:352
AkAsyncIOTransferInfo * pTransferInfo
Definition: AkStreamMgrModule.h:304
AKSOUNDENGINE_API const AkOSChar * GetCurrentLanguage()
이 페이지가 도움이 되었나요?
작업하는 프로젝트에 대해 알려주세요. 언제든지 도와드릴 준비가 되어 있습니다.
프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.
Wwise를 시작해 보세요