FMovingAverager

This class buffers audio while maintaining a running average of the underlying buffer.

Windows
MacOS
Linux

References

Module

SignalProcessing

Header

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

Include

#include "DSP/VoiceProcessing.h"

Syntax

class FMovingAverager

Remarks

This class buffers audio while maintaining a running average of the underlying buffer. This is useful for cases where we can't use a peak detector with asymptotic tracking. For example: lookahead limiters, silence detection, etc.

Constructors

Name Description

Public function

FMovingAverager

(
    uint32 NumSamples
)

Delay length in samples.

Functions

Name Description

Public function

float

 

ProcessInput

(
    const float& Input,
    float& Output
)

Returns average amplitude across the internal buffer, and fills Output with the delay line output.

Public function

void

 

SetNumSamples

(
    uint32 NumSamples
)

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