FastLED 3.10.8
Loading...
Searching...
No Matches

◆ run() [2/2]

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

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

1260 {
1261 if (!mContext) {
1262 return Impl::Result(false, "Impl context is not initialized");
1263 }
1264 if (sample.size() != mContext->sampleSize()) {
1265 FL_WARN("Impl sample size mismatch");
1266 return Impl::Result(false, "Impl sample size mismatch");
1267 }
1268 mContext->run(sample, out);
1269 return Impl::Result(true, "");
1270}
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: