USoundNodeAttenuation

Defines how a sound's volume changes based on distance to the listener

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Sound/SoundNodeAttenuation.h

Include

#include "Sound/SoundNodeAttenuation.h"

Syntax

class USoundNodeAttenuation : public USoundNode

Remarks

Defines how a sound's volume changes based on distance to the listener

Variables

Name Description

Public variable

FSoundAttenuati...

 

AttenuationOverrides

Public variable

TObjectPtr< USo...

 

AttenuationSettings

Public variable

uint32: 1

 

bOverrideAttenuation

Constructors

Name Description

Public function

USoundNodeAttenuation

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Const

const FSound...

 

GetAttenuationSettingsToApply()

Public function Virtual

void

 

ParseNodes

(
    FAudioDevice* AudioDevice,
    const UPTRINT NodeWaveInstanceHash,
    FActiveSound& ActiveSound,
    const FSoundParseParameters& Parse...,
    TArray< FWaveInstance* >& Wav...
)

Overridden from USoundNode

Name Description

Public function Virtual Const

float

 

GetMaxDistance()

Returns the maximum distance this sound can be heard from.