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

Method rms

src/fl/audio/audio.cpp.hpp:140–145  ·  view source on GitHub ↗

O(1) - returns pre-computed cached value

Source from the content-addressed store, hash-verified

138
139// O(1) - returns pre-computed cached value
140float Sample::rms() const {
141 if (!isValid()) {
142 return 0.0f;
143 }
144 return mImpl->rms();
145}
146
147SoundLevelMeter::SoundLevelMeter(double spl_floor, double smoothing_alpha)
148 : mSplFloor(spl_floor), mSmoothingAlpha(smoothing_alpha),

Callers 9

getRMSMethod · 0.45
processMethod · 0.45
updateMethod · 0.45
processSampleMethod · 0.45
updateVolumeAndPeakMethod · 0.45
FL_TEST_FILEFunction · 0.45
auto_gain.hppFile · 0.45
loopFunction · 0.45
loopFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected