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

Function makeDC

tests/fl/audio/test_helpers.h:56–59  ·  view source on GitHub ↗

Generate a DC offset audio sample (constant value) @param dcValue Constant DC value for all samples @param timestamp Sample timestamp in milliseconds @param count Number of samples (default: 512) @return Sample containing DC offset

Source from the content-addressed store, hash-verified

54/// @param count Number of samples (default: 512)
55/// @return Sample containing DC offset
56inline Sample makeDC(fl::i16 dcValue, fl::u32 timestamp, int count = 512) {
57 fl::vector<fl::i16> data(count, dcValue);
58 return Sample(data, timestamp);
59}
60
61/// Generate a maximum amplitude audio sample (saturated signal)
62/// @param timestamp Sample timestamp in milliseconds

Callers 1

FL_TEST_FILEFunction · 0.85

Calls 1

SampleClass · 0.50

Tested by

no test coverage detected