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

Method Sample

src/fl/audio/audio.cpp.hpp:202–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202Sample::Sample(fl::span<const fl::i16> span, fl::u32 timestamp) {
203 mImpl = fl::Singleton<AudioSamplePool>::instance().getOrCreate();
204 auto begin = span.data();
205 auto end = begin + span.size();
206 mImpl->assign(begin, end, timestamp);
207}
208
209
210} // namespace audio

Callers

nothing calls this directly

Calls 4

getOrCreateMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
assignMethod · 0.45

Tested by

no test coverage detected