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

Method configure

src/fl/audio/auto_gain.cpp.hpp:21–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19AutoGain::~AutoGain() FL_NOEXCEPT = default;
20
21void AutoGain::configure(const AutoGainConfig& config) {
22 mConfig = config;
23 resolvePreset();
24 // Initialize peak envelope to targetRMSLevel so initial gain is ~1.0
25 mPeakEnvelope.reset(mConfig.targetRMSLevel);
26 mStats.peakEnvelope = mConfig.targetRMSLevel;
27}
28
29void AutoGain::resolvePreset() {
30 switch (mConfig.preset) {

Callers 14

configureEqualizerMethod · 0.45
ReactiveMethod · 0.45
beginMethod · 0.45
FL_TEST_FILEFunction · 0.45
auto_gain.hppFile · 0.45

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected