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

Function feedFrames

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

Source from the content-addressed store, hash-verified

15namespace { // Anonymous namespace for vibe tests
16
17void feedFrames(audio::detector::Vibe& detector, int count, float freq,
18 float amplitude = 16000.0f) {
19 for (int i = 0; i < count; ++i) {
20 auto sample = makeSample(freq, i * 12, amplitude);
21 auto ctx = fl::make_shared<audio::Context>(sample);
22 ctx->setSampleRate(44100);
23 detector.update(ctx);
24 detector.fireCallbacks();
25 }
26}
27
28void feedSilence(audio::detector::Vibe& detector, int count) {
29 for (int i = 0; i < count; ++i) {

Callers 1

vibe.hppFile · 0.70

Calls 4

makeSampleFunction · 0.50
setSampleRateMethod · 0.45
updateMethod · 0.45
fireCallbacksMethod · 0.45

Tested by

no test coverage detected