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

Method setFFTHistoryDepth

src/fl/audio/audio_context.cpp.hpp:111–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void Context::setFFTHistoryDepth(int depth) {
112 if (mFFTHistoryDepth != depth) {
113 mFFTHistory.clear();
114 mFFTHistory.reserve(depth);
115 mFFTHistoryDepth = depth;
116 mFFTHistoryIndex = 0;
117 }
118}
119
120const fft::Bins* Context::getHistoricalFFT(int framesBack) const {
121 if (framesBack < 0 || framesBack >= static_cast<int>(mFFTHistory.size())) {

Callers 5

FL_TEST_FILEFunction · 0.80
audio_context.hppFile · 0.80
beat.hppFile · 0.80
runPeriodicBeatTestFunction · 0.80
tempo_analyzer.hppFile · 0.80

Calls 2

clearMethod · 0.45
reserveMethod · 0.45

Tested by

no test coverage detected