目录

AkExternalSourceInfo结构参考

所有成员的列表。

公有成员

  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.

公有属性

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).
AkOSChar szFile
  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).
void *  pInMemory
  Pointer to the in-memory file. If not NULL, the source will be read from memory. Set szFile and idFile to NULL.
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.

Warning.gif
警告: 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).

在文件AkTypes.h212行定义。


该结构的文档由以下文件生成: