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

◆ readAll()

size_t fl::audio::IInput::readAll ( fl::vector_inlined< Sample, 16 > * out)
inline

Definition at line 292 of file input.h.

292 {
293 size_t count = 0;
294 while (true) {
295 Sample sample = read();
296 if (sample.isValid()) {
297 if (mGain != 1.0f) {
298 sample.applyGain(mGain);
299 }
300 out->push_back(sample);
301 count++;
302 } else {
303 break;
304 }
305 }
306 return count;
307 }
virtual Sample read() FL_NOEXCEPT=0
void push_back(const T &value) FL_NOEXCEPT
Definition vector.h:624
CRGB sample(const CRGB *grid, const XYMap &xyMap, float x, float y, SampleMode mode)
Sample a pixel from a 2D CRGB grid at floating-point coordinates.
Definition sample.cpp.hpp:9

References FL_NOEXCEPT, mGain, read(), and fl::sample().

+ Here is the call graph for this function: