FastLED 3.10.8
Loading...
Searching...
No Matches

◆ at()

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

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

98 {
99 if (i < size()) {
100 return pcm()[i];
101 }
102 return empty()[0];
103}
const VectorPCM & pcm() const FL_NO_EXCEPT
Definition audio.cpp.hpp:78
static const VectorPCM & empty() FL_NO_EXCEPT
fl::size size() const FL_NO_EXCEPT
Definition audio.cpp.hpp:91

References empty(), fl::FL_NO_EXCEPT, pcm(), and size().

Referenced by operator[]().

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