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

Function makeSilence

tests/fl/audio/test_helpers.h:46–49  ·  view source on GitHub ↗

Generate a silence audio sample (all zeros) @param timestamp Sample timestamp in milliseconds @param count Number of samples (default: 512) @return Sample containing silence

Source from the content-addressed store, hash-verified

44/// @param count Number of samples (default: 512)
45/// @return Sample containing silence
46inline Sample makeSilence(fl::u32 timestamp, int count = 512) {
47 fl::vector<fl::i16> data(count, 0);
48 return Sample(data, timestamp);
49}
50
51/// Generate a DC offset audio sample (constant value)
52/// @param dcValue Constant DC value for all samples

Callers 10

FL_TEST_FILEFunction · 0.70
FL_TEST_FILEFunction · 0.70
FL_TEST_FILEFunction · 0.70
makeSilence_BeatDetectorFunction · 0.50
equalizer.hppFile · 0.50
percussion.hppFile · 0.50
feedSilenceFunction · 0.50
vibe.hppFile · 0.50

Calls 1

SampleClass · 0.50

Tested by

no test coverage detected