版本

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

◆ SetBusEffect() [2/2]

AKSOUNDENGINE_API AKRESULT AK::SoundEngine::SetBusEffect ( const char *  in_pszBusName,
AkUInt32  in_uFXIndex,
AkUniqueID  in_shareSetID 
)

Sets an Effect ShareSet at the specified Bus and Effect slot index.

备注: Replacing effects is preferably done through a Set Effect Event Action.

The Bus can either be an Audio Bus or an Auxiliary Bus. This adds a reference on the audio node to an existing ShareSet.

备注: This function has unspecified behavior when adding an Effect to a currently playing Bus which does not have any effects, or removing the last Effect on a currently playing bus.
备注: Make sure the new effect shareset is included in a soundbank, and that sound bank is loaded. Otherwise you will see errors in the Capture Log.
备注: This function will replace existing Effects on the node. If the target node is not at the top of the hierarchy and is in the Actor-Mixer Hierarchy, the option "Override Parent" in the Effect section in Wwise must be enabled for this node, otherwise the parent's Effect will still be the one in use and the call to SetBusEffect will have no impact.
返回
  • AK_Success when successfully posted.
  • AK_IDNotFound if the Bus name doesn't point to a valid bus.
  • AK_InvalidParameter if in_uFXIndex isn't in range
  • AK_InvalidID if in_pszBusName is null
参数
in_pszBusNameBus name
in_uFXIndexEffect slot index (0-3)
in_shareSetIDShareSets ID; pass AK_INVALID_UNIQUE_ID to clear the effect slot

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅