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

Function generateConstantSignal

tests/fl/audio/test_helpers.h:132–134  ·  view source on GitHub ↗

Generate a constant signal (all same value) @param count Number of samples @param amplitude Constant value for all samples @return Vector of i16 samples

Source from the content-addressed store, hash-verified

130/// @param amplitude Constant value for all samples
131/// @return Vector of i16 samples
132inline vector<i16> generateConstantSignal(size count, i16 amplitude) {
133 return vector<i16>(count, amplitude);
134}
135
136/// Generate DC offset as raw PCM vector (in-place version)
137/// @param out Output vector to append samples to

Callers 1

auto_gain.hppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected