TSlidingBuffer

[TSlidingBuffer](API\Runtime\SignalProcessing\DSP\TSlidingBuffer)

Windows
MacOS
Linux

References

Module

SignalProcessing

Header

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

Include

#include "DSP/SlidingWindow.h"

Syntax

template<typename InSampleType>
class TSlidingBuffer

Remarks

TSlidingBuffer

TSlidingBuffer defines the window size and hop size of the sliding window, and it stores any samples needed to produce additional windows.

TSlidingBuffer should be used in conjunction with the TSlidingWindow, TScopedSlidingWindow or TAutoSlidingWindow classes.

Constructors

Name Description

Public function

TSlidingBuffer

(
    const int32 InNumWindowSamples,
    const int32 InNumHopSamples
)

Constructs a TSlidingBuffer with a constant window and hop size

Functions

Name Description

Public function Const

int32

 

GetNumHopSamples()

Returns the number of samples between windows.

Public function Const

int32

 

GetNumWindowSamples()

Returns the number of samples in a window.

Public function

void

 

Reset()

Resets the internal storage.

Public function

void

 

StoreForFutureWindows

(
    TArrayView< const InSampleType > In...
)

StoreForFutureWindows stores the necessary samples from InBuffer which will be needed for future windows.

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