Module |
|
Header |
/Engine/Source/Runtime/Engine/Public/AudioDevice.h |
Include |
#include "AudioDevice.h" |
Source |
/Engine/Source/Runtime/Engine/Private/AudioDevice.cpp |
bool SoundIsAudible
(
USoundBase * Sound,
const UWorld * World,
const FVector & Location,
const FSoundAttenuationSettings * AttenuationSettingsToApply,
float MaxDistance,
float FocusFactor
) const
Checks if the given sound would be audible.
Returns true if the sound is audible, false otherwise.
Parameter |
Description |
---|---|
Sound |
The sound to check if it would be audible |
World |
The world the sound is playing in |
Location |
The location the sound is playing in the world |
AttenuationSettings |
The (optional) attenuation settings the sound is using |
MaxDistance |
The computed max distance of the sound. |
FocusFactor |
The focus factor of the sound. |