版本

    其他文档

menu_open

AkExternalSourceInfo Struct Reference

List of all members.

Public Member Functions

  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 Attributes

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 and idFile to NULL.
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.

Detailed Description

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
Warning: Make sure that only one of szFile, pInMemory or idFile is non-null. The other 2 must be null.
Note.gif
Note: On the Wii, only mono files can be played from memory.

Definition at line 212 of file AkTypes.h.


The documentation for this struct was generated from the following file:

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅