版本

menu_open
警告:系统已根据您所用大版本 (2023.1.7.8574) 自动跳转至最新文档。若想访问特定版本的文档,请从 Audiokinetic Launcher 下载离线文档,并在 Wwise 设计程序中勾选 Offline Documentation 选项。
Wwise SDK 2023.1.7
AkExternalSourceInfo结构体 参考

#include <AkTypes.h>

Public 成员函数

 AkExternalSourceInfo ()
 Default constructor. 更多...
 
 AkExternalSourceInfo (void *in_pInMemory, AkUInt32 in_uiMemorySize, AkUInt32 in_iExternalSrcCookie, AkCodecID in_idCodec)
 Constructor: specify source by memory. 更多...
 
 AkExternalSourceInfo (AkOSChar *in_pszFileName, AkUInt32 in_iExternalSrcCookie, AkCodecID in_idCodec)
 Constructor: specify source by streaming file name. 更多...
 
 AkExternalSourceInfo (AkFileID in_idFile, AkUInt32 in_iExternalSrcCookie, AkCodecID in_idCodec)
 Constructor: specify source by streaming file ID. 更多...
 

Public 属性

AkUInt32 iExternalSrcCookie
 Cookie identifying the source, given by hashing the name of the source given in the project. See AK::SoundEngine::GetIDFromString. 更多...
 
AkCodecID idCodec
 Codec ID for the file. One of the audio formats defined in AkTypes.h (AKCODECID_XXX) 更多...
 
AkOSCharszFile
 File path for the source. If not NULL, the source will be streaming from disk. Set pInMemory to NULL. If idFile is set, this field is used as stream name (for profiling purposes). /// The only file format accepted is a fully formed WEM file, as converted by Wwise. 更多...
 
void * pInMemory
 Pointer to the in-memory file. If not NULL, the source will be read from memory. Set szFile and idFile to NULL. The only file format accepted is a fully formed WEM file, as converted by Wwise. 更多...
 
AkUInt32 uiMemorySize
 Size of the data pointed by pInMemory 更多...
 
AkFileID idFile
 File ID. If not zero, the source will be streaming from disk. This ID can be anything. Note that you must override the low-level IO to resolve this ID to a real file. See Low-Level I/O for more information on overriding the Low Level IO. 更多...
 

详细描述

This structure allows the game to provide audio files to fill the external sources. See AK::SoundEngine::PostEvent You can specify a streaming file or a file in-memory, regardless of the "Stream" option in the Wwise project. The only file format accepted is a fully formed WEM file, as converted by Wwise.

警告: Make sure that only one of szFile, pInMemory or idFile is non-null. if both idFile and szFile are set, idFile is passed to low-level IO and szFile is used as stream name (for profiling purposes).
警告: When using the in-memory file (pInMemory & uiMemorySize), it is the responsibility of the game to ensure the memory stays valid for the entire duration of the playback. You can achieve this by using the AK_EndOfEvent callback to track when the Event ends.
参见

在文件 AkTypes.h257 行定义.


此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅