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

◆ at()

const int16_t & fl::AudioSample::at ( size_t i) const

Definition at line 26 of file audio.cpp.

26 {
27 if (i < size()) {
28 return pcm()[i];
29 }
30 return empty()[0];
31}
const VectorPCM & pcm() const
Definition audio.cpp:6
size_t size() const
Definition audio.cpp:19
static const VectorPCM & empty()
Definition audio.cpp:57

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

Referenced by operator[]().

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