#include <DeinterleaveView.h>
类 Audio::TAutoDeinterleaveView< T, InAllocator > 继承关系图:Public 成员函数 | |
| TAutoChannelIterator | begin () |
| Return an STL iterator to the first channel. | |
| TAutoChannelIterator | end () |
| Return an STL iterator to the end. | |
| TAutoDeinterleaveView (TArrayView< const T > InInterleavedArray, TArray< T, InAllocator > &InArrayToFill, int32 InNumChannels) | |
| TAutoDeinterleaveView Constructor. 更多... | |
Public 成员函数 继承自 Audio::TDeinterleaveView< T > | |
| template<typename InAllocator = FDefaultAllocator> | |
| TChannelIterator< InAllocator > | begin (TArray< T, InAllocator > &InArrayToFill) const |
| Return an STL iterator to the first channel. 更多... | |
| template<typename InAllocator = FDefaultAllocator> | |
| TChannelIterator< InAllocator > | end (TArray< T, InAllocator > &InArrayToFill) const |
| Return an STL iterator to the end. | |
| TDeinterleaveView (TArrayView< const T > InInterleavedArray, int32 InNumChannels) | |
| TDeinterleave constructor. 更多... | |
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.