Table of Contents

ak.soundengine.setMultiplePositions

Set multiple positions for a single game object. Setting multiple positions for 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. See AK::SoundEngine::SetMultiplePositions.

Arguments

Name Type Description
gameObject * integer Game Object identifier.
A game object ID, unsigned integer 64-bit.
Range: [0,18446744073709551615]
multiPositionType * integer Use values from AK::SoundEngine::MultiPositionType.
Range: [0,2]
positions * array Array of positions to apply.
positions[...] object Position
positions[...].position * object A 3D position to set for the game object.
positions[...].position.orientationTop * object Top orientation of the listener.
positions[...].position.orientationTop.y * number Y Position.
positions[...].position.orientationTop.x * number X Position.
positions[...].position.orientationTop.z * number Z Position.
positions[...].position.position * object Position of the listener
positions[...].position.position.y * number Y Position.
positions[...].position.position.x * number X Position.
positions[...].position.position.z * number Z Position.
positions[...].position.orientationFront * object Orientation of the listener.
positions[...].position.orientationFront.y * number Y Position.
positions[...].position.orientationFront.x * number X Position.
positions[...].position.orientationFront.z * number Z Position.

(Required *)

Arguments Schema

See Also

Examples

Refer to Using the Wwise Authoring API (WAAPI) for more information about WAAPI.