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

Function feedSilence

tests/fl/audio/detector/vibe.hpp:28–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void feedSilence(audio::detector::Vibe& detector, int count) {
29 for (int i = 0; i < count; ++i) {
30 auto sample = makeSilence(i * 12);
31 auto ctx = fl::make_shared<audio::Context>(sample);
32 ctx->setSampleRate(44100);
33 detector.update(ctx);
34 detector.fireCallbacks();
35 }
36}
37
38} // anonymous namespace
39

Callers 1

vibe.hppFile · 0.85

Calls 4

makeSilenceFunction · 0.50
setSampleRateMethod · 0.45
updateMethod · 0.45
fireCallbacksMethod · 0.45

Tested by

no test coverage detected