FastLED 3.9.15
Loading...
Searching...
No Matches

◆ assign()

template<typename It>
void fl::audio::SampleImpl::assign ( It begin,
It end,
fl::u32 timestamp )
inline

Definition at line 119 of file audio.h.

119 {
120 mSignedPcm.assign(begin, end);
122 // Pre-compute zero crossings for O(1) access
124 // RMS is computed lazily on first access to avoid blocking
125 mRmsComputed = false;
126 }
void initZeroCrossings() FL_NOEXCEPT
Definition audio.h:169
VectorPCM mSignedPcm
Definition audio.h:197
fl::u32 timestamp() const FL_NOEXCEPT
Definition audio.h:129
constexpr T * begin(T(&array)[N]) FL_NOEXCEPT

References fl::begin(), fl::end(), FL_NOEXCEPT, initZeroCrossings(), mRmsComputed, mSignedPcm, mTimestamp, and timestamp().

+ Here is the call graph for this function: