版本

menu_open
Wwise SDK 2024.1.0

◆ SetMultiplePositions() [2/2]

AKSOUNDENGINE_API AKRESULT AK::SoundEngine::SetMultiplePositions ( AkGameObjectID  in_GameObjectID,
const AkSoundPosition in_pPositions,
AkUInt16  in_NumPositions,
MultiPositionType  in_eMultiPositionType = MultiPositionType_MultiDirections,
AkSetPositionFlags  in_eFlags = AkSetPositionFlags_Default 
)

Sets multiple positions to a single game object. Setting multiple positions on a single game object is a way to simulate multiple emission sources while using the resources of only one voice. This can be used to simulate wall openings, area sounds, or multiple objects emitting the same sound in the same area.

备注:
返回
  • AK_Success when successful
  • AK_CommandTooLarge if the number of positions is too large for the command queue. Reduce the number of positions.
  • AK_InvalidParameter if parameters are not valid, for example:
  • in_Position makes an invalid transform
  • in_eFlags is not one of the valid enum values
  • the game object ID is in the reserved ID range.
参见
参数
in_GameObjectIDGame Object identifier.
in_pPositionsArray of positions to apply.
in_NumPositionsNumber of positions specified in the provided array.
in_eMultiPositionTypeAK::SoundEngine::MultiPositionType
in_eFlagsOptional flags to independently set the position of the emitter or listener component.

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅