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

◆ begin()

void fl::AudioReactive::begin ( const AudioConfig & config = AudioConfig{})

Definition at line 17 of file audio_reactive.cpp.

17 {
18 setConfig(config);
19
20 // Reset state
21 mCurrentData = AudioData{};
22 mSmoothedData = AudioData{};
23 mLastBeatTime = 0;
24 mPreviousVolume = 0.0f;
25 mAGCMultiplier = 1.0f;
26 mMaxSample = 0.0f;
27 mAverageLevel = 0.0f;
28}
void setConfig(const AudioConfig &config)
AudioData mSmoothedData

References mAGCMultiplier, mAverageLevel, mCurrentData, mLastBeatTime, mMaxSample, mPreviousVolume, mSmoothedData, and setConfig().

+ Here is the call graph for this function: