FSlowAdaptiveGainControl

This object accepts an input buffer and current amplitude estimate of that input buffer, Then applies a computed gain target.

Windows
MacOS
Linux

References

Module

SignalProcessing

Header

/Engine/Source/Runtime/SignalProcessing/Public/DSP/VoiceProcessing.h

Include

#include "DSP/VoiceProcessing.h"

Syntax

class FSlowAdaptiveGainControl

Remarks

This object accepts an input buffer and current amplitude estimate of that input buffer, Then applies a computed gain target. Works like a standard feed forward limiter, with a threshold of 0.

Constructors

Name Description

Public function

FSlowAdaptiveGainControl

(
    float InGainTarget,
    int32 InAdaptiveRate,
    float InGainMin,
    float InGainMax
)

InGainTarget is our target running linear gain.

Functions

Name Description

Public function

float

 

ProcessAudio

(
    float* InAudio,
    int32 NumSamples,
    float InAmplitude
)

Takes an amplitude estimate and an input buffer, and attenuates InAudio based on it.

Public function

void

 

SetAdaptiveRate

(
    int32 InAdaptiveRate
)

Sets the responsiveness of the adaptive gain control, in number of buffer callbacks.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss