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

◆ processSample()

void fl::AudioReactive::processSample ( const AudioSample & sample)

Definition at line 34 of file audio_reactive.cpp.

34 {
35 if (!sample.isValid()) {
36 return; // Invalid sample, ignore
37 }
38
39 // Extract timestamp from the AudioSample
40 fl::u32 currentTimeMs = sample.timestamp();
41
42 // Process the AudioSample immediately - timing is gated by sample availability
43 processFFT(sample);
44 updateVolumeAndPeak(sample);
45 detectBeat(currentTimeMs);
46 applyGain();
49
50 mCurrentData.timestamp = currentTimeMs;
51}
void processFFT(const AudioSample &sample)
void detectBeat(fl::u32 currentTimeMs)
void updateVolumeAndPeak(const AudioSample &sample)

References applyGain(), applyScaling(), detectBeat(), fl::AudioSample::isValid(), mCurrentData, processFFT(), smoothResults(), fl::AudioSample::timestamp(), and updateVolumeAndPeak().

+ Here is the call graph for this function: