Navigation
Unreal Engine C++ API Reference > 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
&40;
USoundBase &42; Sound,
const UWorld &42; World,
const FVector & Location,
const FSoundAttenuationSettings &42; AttenuationSettingsToApply,
float MaxDistance,
float FocusFactor
&41; 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. |