MCPcopy Create free account
hub / github.com/FastLED/FastLED / run

Method run

src/fl/audio/fft/fft.cpp.hpp:250–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250void FFT::run(const span<const fl::i16> &sample, Bins *out,
251 const Args &args) {
252 Args args2 = args;
253 args2.samples = sample.size();
254 // Fetch cached impl (thread-safe), then run FFT outside the lock.
255 fl::shared_ptr<Impl> impl = globalCache().get_or_create(args2);
256 impl->run(sample, out);
257}
258
259void FFT::clear() { globalCache().clear(); }
260

Callers 1

getFFTMethod · 0.45

Calls 2

get_or_createMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected