FastLED 3.10.9
Loading...
Searching...
No Matches

◆ run() [2/2]

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

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

1257 {
1258 if (!mContext) {
1259 return Impl::Result(false, "Impl context is not initialized");
1260 }
1261 if (sample.size() != mContext->sampleSize()) {
1262 FL_WARN("Impl sample size mismatch");
1263 return Impl::Result(false, "Impl sample size mismatch");
1264 }
1265 mContext->run(sample, out);
1266 return Impl::Result(true, "");
1267}
fl::unique_ptr< Context > mContext
Definition fft_impl.h:52
#define FL_WARN(...)
Definition log.h:437
CRGB sample(const CRGB *grid, const XYMap &xyMap, float x, float y, SampleMode mode) FL_NO_EXCEPT
Sample a pixel from a 2D CRGB grid at floating-point coordinates.

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

+ Here is the call graph for this function: