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

Function makeMaxAmplitude

tests/fl/audio/test_helpers.h:65–68  ·  view source on GitHub ↗

Generate a maximum amplitude audio sample (saturated signal) @param timestamp Sample timestamp in milliseconds @param count Number of samples (default: 512) @return Sample with maximum i16 amplitude

Source from the content-addressed store, hash-verified

63/// @param count Number of samples (default: 512)
64/// @return Sample with maximum i16 amplitude
65inline Sample makeMaxAmplitude(fl::u32 timestamp, int count = 512) {
66 fl::vector<fl::i16> data(count, 32767);
67 return Sample(data, timestamp);
68}
69
70/// Generate audio sample from PCM data
71/// @param pcm Vector of PCM samples

Callers 1

FL_TEST_FILEFunction · 0.85

Calls 1

SampleClass · 0.50

Tested by

no test coverage detected