![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SlidingWindow.h>
Inheritance diagram for Audio::TSlidingWindow< InSampleType >:Classes | |
| class | TSlidingWindowIterator |
Public Member Functions | |
| TSlidingWindow (const TSlidingBuffer< InSampleType > &InSlidingBuffer, TArrayView< const InSampleType > InNewBuffer, bool bDoFlush) | |
| virtual | ~TSlidingWindow () |
| template<typename InAllocator = FDefaultAllocator> | |
| TSlidingWindowIterator< InAllocator > | begin (TArray< InSampleType, InAllocator > &OutWindowBuffer) const |
| template<typename InAllocator = FDefaultAllocator> | |
| TSlidingWindowIterator< InAllocator > | end (TArray< InSampleType, InAllocator > &OutWindowBuffer) const |
Protected Attributes | |
| TArrayView< const InSampleType > | StorageBuffer |
| TArrayView< const InSampleType > | NewBuffer |
| const int32 | NumWindowSamples |
| const int32 | NumHopSamples |
Friends | |
| class | TSlidingWindowIterator |
TSlidingWindow allows windows of samples to be iterated over with STL like iterators.
|
inline |
TSlidingWindow constructor
InSlidingBuffer Holds the previous samples which were not completely used in previous sliding windows. It also defines the window and hop size. InNewBuffer Holds new samples which have not yet been ingested by the InSlidingBuffer. bDoFlush Controls whether zeros to the final output windows until all possible windows with data from InNewBuffer have been covered.
|
inlinevirtual |
|
inline |
Creates STL like iterator which slides over samples.
OutWindowBuffer Used to construct the TSlidingWindowIterator. The iterator will populate the window with samples when the * operator is called.
|
inline |
Creates STL like iterator denotes the end of the sliding window.
OutWindowBuffer Used to construct the TSlidingWindowIterator. The iterator will populate the window with samples when the * operator is called.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |