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

Function feedSingle

tests/fl/audio/detector/percussion.hpp:42–46  ·  view source on GitHub ↗

Feed a single generated sample and update detector

Source from the content-addressed store, hash-verified

40
41// Feed a single generated sample and update detector
42void feedSingle(audio::detector::Percussion& det, const audio::Sample& sample) {
43 auto ctx = fl::make_shared<audio::Context>(sample);
44 ctx->setSampleRate(44100);
45 det.update(ctx);
46}
47
48} // namespace test_percussion
49using namespace test_percussion;

Callers 1

percussion.hppFile · 0.85

Calls 2

setSampleRateMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected