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

Method reset

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

Source from the content-addressed store, hash-verified

63}
64
65void AutoGain::reset() {
66 mPeakEnvelope.reset(mConfig.targetRMSLevel);
67 mIntegrator = 0.0f;
68 mLastGain = 1.0f;
69 mStats.currentGain = 1.0f;
70 mStats.peakEnvelope = mConfig.targetRMSLevel;
71 mStats.targetGain = 1.0f;
72 mStats.integrator = 0.0f;
73 mStats.inputRMS = 0.0f;
74 mStats.outputRMS = 0.0f;
75 mStats.samplesProcessed = 0;
76}
77
78Sample AutoGain::process(const Sample& sample) {
79 // Pass through if disabled

Callers 1

configureMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected