This documentation is for a prerelease version of O3DE. Click here to switch to the latest release, or select a version from the dropdown.

Version:

MiniAudio Listener Component

The MiniAudio Listener component provides the ability to designate an entity whose position is used for spatial audio playback, or let the user manually control the audio listener position through the MiniAudioListenerRequestBus. Typically, the entity with an active camera is designated as the audio listener entity so that spatial audio playback is relative to the viewer’s location and orientation.

MiniAudio Listener Properties

The MiniAudio Listener component has the following properties.

NameDescriptionDefault
Follow EntityThe entity to use as the listener for spatial audio playback.<Empty>
Listener IndexMiniAudio listener index. When a sound is spatialized, it will be done so relative to the closest listener.0

EBus Request Bus Interface

Use the MiniAudioListenerRequestBus EBus interface to communicate with the MiniAudio Listener component.

For more information about using the Event Bus (EBus) interface, see Working with the Event Bus (EBus) system.

NameDescriptionParametersReturnScriptable
SetFollowEntitySet the entity for the audio listener to use for position and orientation.followEntity - EntityId of the entity to follow.NoneYes
SetPositionSet the position for the audio listener.position - Vector3 world coordinates to use.NoneYes