Set an early reflections auxiliary bus for a particular game object. Geometrical reflection calculation inside spatial audio is enabled for a game object if any sound playing on the game object has a valid early reflections aux bus specified in the authoring tool, or if an aux bus is specified via SetEarlyReflectionsAuxSend
. The in_auxBusID
parameter of SetEarlyReflectionsAuxSend applies to sounds playing on the game object in_gameObjectID
which have not specified an early reflection bus in the authoring tool - the parameter specified on individual sounds' reflection bus takes priority over the value passed in to SetEarlyReflectionsAuxSend
.
![](/images/2023.1.6_8555/?source=SDK&id=images/Note.gif) | 备注: Users may apply this function to avoid duplicating sounds in the actor-mixer hierarchy solely for the sake of specifying a unique early reflection bus, or in any situation where the same sound should be played on different game objects with different early reflection aux buses (the early reflection bus must be left blank in the authoring tool if the user intends to specify it through the API). |
- 参数
-
in_gameObjectID | Game object ID |
in_auxBusID | Auxiliary bus ID. Applies only to sounds which have not specified an early reflection bus in the authoring tool. Pass AK_INVALID_AUX_ID to set only the send volume. |