#include <AudioListenerComponent.h>
Inherits AZ::Component, AZ::TransformNotificationBus::MultiHandler, AZ::EntityBus::MultiHandler, and AudioListenerComponentRequestBus::Handler.
|
| AZ_COMPONENT (AudioListenerComponent, "{00B5358C-3EEE-4012-93FC-6222B0004404}") |
|
void | Activate () override |
|
void | Deactivate () override |
|
void | SetRotationEntity (const AZ::EntityId entityId) override |
|
void | SetPositionEntity (const AZ::EntityId entityId) override |
|
void | SetListenerEnabled (bool enabled) override |
|
void | OnTransformChanged (const AZ::Transform &, const AZ::Transform &) override |
|
void | OnEntityActivated (const AZ::EntityId &) override |
|
void | OnEntityDeactivated (const AZ::EntityId &) override |
|
|
static void | GetProvidedServices (AZ::ComponentDescriptor::DependencyArrayType &provided) |
|
static void | GetRequiredServices (AZ::ComponentDescriptor::DependencyArrayType &required) |
|
static void | GetIncompatibleServices (AZ::ComponentDescriptor::DependencyArrayType &incompatible) |
|
static void | Reflect (AZ::ReflectContext *context) |
|
|
class | EditorAudioListenerComponent |
|
AudioListenerComponent A component wrapper for an Audio Listener, which acts as a sink for audio sources. There is only 1 AudioListenerComponent allowed on an Entity, and they are typically paired with a Camera for orientation and position information.
Ideally we'd like the ability to "split" the listener position. That is, to route different positions to different calculations. For example, in a third-person-view game we'd like to have panning be based off the camera's location, but have attenuation curves be based off the player's location. This feature is not yet available in Wwise middleware, but it is on their roadmap (WG-21449).
◆ AZ_COMPONENT()
LmbrCentral::AudioListenerComponent::AZ_COMPONENT |
( |
AudioListenerComponent |
, |
|
|
"{00B5358C-3EEE-4012-93FC-6222B0004404}" |
|
|
) |
| |
◆ OnEntityActivated()
void LmbrCentral::AudioListenerComponent::OnEntityActivated |
( |
const AZ::EntityId & |
| ) |
|
|
override |
◆ OnTransformChanged()
void LmbrCentral::AudioListenerComponent::OnTransformChanged |
( |
const AZ::Transform & |
, |
|
|
const AZ::Transform & |
|
|
) |
| |
|
override |
AZ::TransformNotificationBus::MultiHandler
◆ SetRotationEntity()
void LmbrCentral::AudioListenerComponent::SetRotationEntity |
( |
const AZ::EntityId |
entityId | ) |
|
|
override |
AudioListenerRequestBus::Handler Required Interface
The documentation for this class was generated from the following file:
- Gems/LmbrCentral/Code/Source/Audio/AudioListenerComponent.h