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

◆ processFFT()

void fl::audio::Reactive::processFFT ( const Sample & sample)
private

Definition at line 280 of file audio_reactive.cpp.hpp.

280 {
281 // Get PCM data from Sample
282 const auto& pcmData = sample.pcm();
283 if (pcmData.empty()) return;
284
285 // Use shared Context for cached FFT (avoids recomputation if Processor also needs it)
286 auto cachedBins = mContext->getFFT16();
287 mFFTBins = *cachedBins;
288
289 // Map fft::FFT bins to frequency channels using WLED-compatible mapping
291}
shared_ptr< Context > mContext
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 mapFFTBinsToFrequencyChannels(), mContext, mFFTBins, and fl::sample().

Referenced by processSample().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: