RealDocs

UAudioComponent::SetLowPassFilterFrequency

function Engine Blueprint Since unknown
#include "Components/AudioComponent.h"
Access: public Specifiers: UFUNCTIONBlueprintCallable

Description

Sets the cutoff frequency, in Hz, used by this component's Low Pass Filter contribution to the sound's overall LPF calculation.

Caveats & Gotchas

  • Has no effect unless SetLowPassFilterEnabled(true) has also been called on this component.
  • The engine takes the lowest LPF cutoff across all contributing sources (this override, attenuation, occlusion), so a high frequency here won't override a tighter filter applied elsewhere.
  • Very low values (below a few hundred Hz) can make the sound nearly inaudible since almost all high-frequency content is removed.

Signature

void SetLowPassFilterFrequency(float InLowPassFilterFrequency)

Parameters

Name Type Description Default
InLowPassFilterFrequency float Cutoff frequency, in Hz, for this component's Low Pass Filter contribution.

Return Type

void

Example

Muffle a sound behind a door C++
AudioComponent->SetLowPassFilterEnabled(true);
AudioComponent->SetLowPassFilterFrequency(500.0f);

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.