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

◆ at()

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

Definition at line 38 of file audio.cpp.

38 {
39 if (i < size()) {
40 return pcm()[i];
41 }
42 return empty()[0];
43}
const VectorPCM & pcm() const
Definition audio.cpp:18
size_t size() const
Definition audio.cpp:31
static const VectorPCM & empty()
Definition audio.cpp:69

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

Referenced by operator[]().

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