Wwise 版本
arrow_right 目录
AKRESULT __cdecl AK::SoundEngine::SetBusEffect ( AkUniqueID  in_audioNodeID,
AkUInt32  in_uFXIndex,
AkUniqueID  in_shareSetID  

Set an effect shareset at the specified bus and effect slot index. The bus can either be an audio bus or an auxiliary bus. This adds a reference on the audio node to an existing ShareSet.

Note: 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.

Note: 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.

Always returns AK_Success
in_audioNodeID  Bus Short ID.
in_uFXIndex  Effect slot index (0-3)
in_shareSetID  ShareSet ID; pass AK_INVALID_UNIQUE_ID to clear the effect slot