![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SlidingWindow.h>
Public Member Functions | |
| TSlidingBuffer (const int32 InNumWindowSamples, const int32 InNumHopSamples) | |
| TSlidingBuffer () | |
| TSlidingBuffer (const TSlidingBuffer &)=default | |
| TSlidingBuffer (TSlidingBuffer &&)=default | |
| TSlidingBuffer & | operator= (const TSlidingBuffer &InOther)=default |
| TSlidingBuffer & | operator= (TSlidingBuffer &&InOther)=default |
| int32 | GetNumWindowSamples () const |
| int32 | GetNumHopSamples () const |
| int32 | GetNumUnderflowSamples () const |
| TArrayView< const InSampleType > | GetStorage () const |
| void | StoreForFutureWindows (TArrayView< const InSampleType > InBuffer) |
| void | Reset () |
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.
|
inline |
Constructs a TSlidingBuffer with a constant window and hop size
|
inline |
|
default |
|
default |
|
inline |
Returns the number of samples between windows.
|
inline |
Returns the number of underflow samples (when hopsize > windowsize)
|
inline |
Returns the number of samples in a window.
|
inline |
|
default |
|
default |
|
inline |
Resets the internal storage.
|
inline |
StoreForFutureWindows stores the necessary samples from InBuffer which will be needed for future windows. It ignores all values in InBuffer which can already be composed as a complete window.