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

◆ at()

const fl::i16 & fl::audio::Sample::at ( fl::size i) const

Definition at line 93 of file audio.cpp.hpp.

93 {
94 if (i < size()) {
95 return pcm()[i];
96 }
97 return empty()[0];
98}
static const VectorPCM & empty() FL_NOEXCEPT
fl::size size() const FL_NOEXCEPT
Definition audio.cpp.hpp:86
const VectorPCM & pcm() const FL_NOEXCEPT
Definition audio.cpp.hpp:73

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

Referenced by operator[]().

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