AudioListenerComponent Class
Definition
Namespace: Brine2D.Systems.Audio
Represents the audio listener \(usually attached to the camera or player\). There should only be one active listener at a time.
Inheritance System.Object → Component → AudioListenerComponent
Remarks
Listener orientation is derived from the entity's TransformComponent.Rotation.
Spatial panning is calculated relative to the listener's facing direction.
| Properties | |
|---|---|
| GlobalSpatialVolume | Global volume multiplier for all spatial audio \(0\.0 to 1\.0\). Values outside the range are clamped. |
| SpeedOfSound | Speed of sound in world units per second, used for Doppler calculations. Adjust to match your game's world scale. Clamped to [1, ∞). Default 343. |