class
FAudioCurve
Sampler for the author-editable attenuation curves carried on AudioSourceComponent. A curve is a small sorted set of {distance, value} keys; the engine evaluates gain-over-distance and cutoff-over-distance from these each frame when the source is spatialized. Keys are authored in arbitrary order — the evaluator sorts a local copy before sampling — and the curve is flat-clamped outside its first and last key.
- Module
- Audio
- Header
#include "Audio/AudioCurve.h"- Namespace
Mowo
Public functions
Function details
HasKeys
C++
static bool HasKeys(const std::vector<FAudioCurveKey>& keys)Evaluate
C++
static float Evaluate(const std::vector<FAudioCurveKey>& keys, float distance, EAudioCurveInterp interp, float emptyValue = 1.0f)Sample the curve at distance. Empty curves return emptyValue so a caller can fold the result into a multiply without a branch. Linear does straight lerp between the bracketing keys; Cubic uses a Catmull-Rom spline across the neighbouring keys (clamped at the ends) for a smoother rolloff that still passes through every authored key.
Generated from Audio/AudioCurve.h via audio.json · Oct 26, 2026Version 1.0.0