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

◆ run() [2/2]

Impl::Result fl::audio::fft::Impl::run ( span< const i16 > sample,
Bins * out )

Definition at line 1163 of file fft_impl.cpp.hpp.

1163 {
1164 if (!mContext) {
1165 return Impl::Result(false, "Impl context is not initialized");
1166 }
1167 if (sample.size() != mContext->sampleSize()) {
1168 FL_WARN("Impl sample size mismatch");
1169 return Impl::Result(false, "Impl sample size mismatch");
1170 }
1171 mContext->run(sample, out);
1172 return Impl::Result(true, "");
1173}
fl::unique_ptr< Context > mContext
Definition fft_impl.h:51
#define FL_WARN(X)
Definition log.h:276
CRGB sample(const CRGB *grid, const XYMap &xyMap, float x, float y, SampleMode mode)
Sample a pixel from a 2D CRGB grid at floating-point coordinates.
Definition sample.cpp.hpp:9

References FL_WARN, mContext, and fl::sample().

+ Here is the call graph for this function: