FastLED 3.9.15
Loading...
Searching...
No Matches

◆ at()

const fl::i16 & fl::AudioSample::at ( fl::size i) const

Definition at line 37 of file audio.cpp.

37 {
38 if (i < size()) {
39 return pcm()[i];
40 }
41 return empty()[0];
42}
const VectorPCM & pcm() const
Definition audio.cpp:17
fl::size size() const
Definition audio.cpp:30
static const VectorPCM & empty()
Definition audio.cpp:68

References empty(), pcm(), and size().

Referenced by operator[]().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: