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

◆ configure()

void fl::audio::AutoGain::configure ( const AutoGainConfig & config)

Configure the auto gain controller.

Definition at line 21 of file auto_gain.cpp.hpp.

21 {
22 mConfig = config;
24 // Initialize peak envelope to targetRMSLevel so initial gain is ~1.0
25 mPeakEnvelope.reset(mConfig.targetRMSLevel);
26 mStats.peakEnvelope = mConfig.targetRMSLevel;
27}
AttackDecayFilter< float > mPeakEnvelope
Peak envelope tracker: fast attack (10ms), slow decay (preset-dependent)
Definition auto_gain.h:152
AutoGainConfig mConfig
Definition auto_gain.h:140
void resolvePreset()
Resolve preset enum into concrete PI tuning parameters.

References AutoGain(), configure(), mConfig, mPeakEnvelope, mStats, and resolvePreset().

Referenced by AutoGain(), AutoGain(), ~AutoGain(), and configure().

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