Navigation
API > API/Runtime > API/Runtime/Engine
Defines the properties of the listener
| Name | FListener |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/AudioDevice.h |
| Include Path | #include "AudioDevice.h" |
Syntax
struct FListener
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FListener () |
AudioDevice.h | ||
FListener
(
FAudioDevice* InAudioDevice |
AudioDevice.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AttenuationOverride | FVector | An attenuation override to use for distance and attenuation calculations | AudioDevice.h | |
| AudioDevice | FAudioDevice * | AudioDevice.h | ||
| AudioVolumeID | uint32 | The ID of the volume the listener resides in | AudioDevice.h | |
| bUseAttenuationOverride | uint32 | Is our attenuation override active | AudioDevice.h | |
| ExteriorEndTime | double | AudioDevice.h | ||
| ExteriorLPFEndTime | double | AudioDevice.h | ||
| ExteriorLPFInterp | float | AudioDevice.h | ||
| ExteriorVolumeInterp | float | AudioDevice.h | ||
| InteriorEndTime | double | AudioDevice.h | ||
| InteriorLPFEndTime | double | AudioDevice.h | ||
| InteriorLPFInterp | float | AudioDevice.h | ||
| InteriorSettings | FInteriorSettings | AudioDevice.h | ||
| InteriorStartTime | double | The times of interior volumes fading in and out | AudioDevice.h | |
| InteriorVolumeInterp | float | AudioDevice.h | ||
| ListenerIndex | int32 | Index of this listener inside the AudioDevice's listener array | AudioDevice.h | |
| Transform | FTransform | AudioDevice.h | ||
| Velocity | FVector | AudioDevice.h | ||
| WorldID | uint32 | The ID of the world the listener resides in | AudioDevice.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ApplyInteriorSettings
(
uint32 AudioVolumeID, |
Apply the interior settings to ambient sounds | AudioDevice.h | |
FVector GetFront() |
AudioDevice.h | ||
FVector GetPosition
(
bool bAllowOverride |
Gets the position of the listener | AudioDevice.h | |
FVector GetRight() |
AudioDevice.h | ||
FVector GetUp() |
AudioDevice.h | ||
float Interpolate
(
const double EndTime |
Works out the interp value between source and end | AudioDevice.h | |
void UpdateCurrentInteriorSettings() |
Gets the current state of the interior settings for the listener | AudioDevice.h |