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

◆ at()

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

Definition at line 82 of file audio.cpp.

82 {
83 if (i < size()) {
84 return pcm()[i];
85 }
86 return empty()[0];
87}
const VectorPCM & pcm() const
Definition audio.cpp:62
fl::size size() const
Definition audio.cpp:75
static const VectorPCM & empty()
Definition audio.cpp:113

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

Referenced by operator[]().

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