Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FAudioDevice > API/Runtime/Engine/FAudioDevice/SoundIsAudible
References
| Module | Engine |
| 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
Remarks
Checks if the given sound would be audible. Returns true if the sound is audible, false otherwise.
Parameters
| Name | 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. |