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

◆ run() [2/2]

FFTImpl::Result fl::FFTImpl::run ( span< const i16 > sample,
FFTBins * out )

Definition at line 159 of file fft_impl.cpp.

159 {
160 if (!mContext) {
161 return FFTImpl::Result(false, "FFTImpl context is not initialized");
162 }
163 if (sample.size() != mContext->sampleSize()) {
164 FASTLED_WARN("FFTImpl sample size mismatch");
165 return FFTImpl::Result(false, "FFTImpl sample size mismatch");
166 }
167 mContext->fft_unit_test(sample, out);
168 return FFTImpl::Result(true, "");
169}
fl::unique_ptr< FFTContext > mContext
Definition fft_impl.h:55
#define FASTLED_WARN
Definition warn.h:7

References FASTLED_WARN, mContext, and fl::Slice< T >::size().

+ Here is the call graph for this function: