![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <DeinterleaveView.h>
Inheritance diagram for Audio::TAutoDeinterleaveView< T, InAllocator >:Public Member Functions | |
| TAutoDeinterleaveView (TArrayView< const T > InInterleavedArray, TArray< T, InAllocator > &InArrayToFill, int32 InNumChannels) | |
| TAutoChannelIterator | begin () |
| TAutoChannelIterator | end () |
Public Member Functions inherited from Audio::TDeinterleaveView< T > | |
| TDeinterleaveView (TArrayView< const T > InInterleavedArray, int32 InNumChannels) | |
| template<typename InAllocator = FDefaultAllocator> | |
| TChannelIterator< InAllocator > | begin (TArray< T, InAllocator > &InArrayToFill) const |
| template<typename InAllocator = FDefaultAllocator> | |
| TChannelIterator< InAllocator > | end (TArray< T, InAllocator > &InArrayToFill) const |
TAutoDeinterlaveView provides a STL like iterators which exposes contiguous channel arrays from interleaved arrays. As opposed to TDeinterleaveView, this class can be used in range based for loops, but only one iterator is valid at a time since they all share the same InArrayToFill.
Example:
TArray<float> ArrayToFill; for (auto Channel : TAudoDeineterleaveView(InterleavedArray, ArrayToFill, 2)) { DoSomethingWithAudio(Channel.Values, Channel.ChannelIndex); }
|
inline |
TAutoDeinterleaveView Constructor.
InInterleavedArray is the interleaved array to be deinterleaved. InArrayToFill is the array which will be populated with contiguous elements for a channel. InNumChannels is the number of channels in the deinterleaved array.
|
inline |
Return an STL iterator to the first channel.
|
inline |
Return an STL iterator to the end.