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

◆ geti16()

int16_t fl::WaveSimulation1D::geti16 ( size_t x) const

Definition at line 264 of file wave_simulation.cpp.

264 {
265 if (!has(x))
266 return 0;
267 uint8_t mult = MAX(1, mMultiplier);
268 int32_t sum = 0;
269 for (uint32_t i = 0; i < mult; ++i) {
270 sum += mSim->geti16(x * mult + i);
271 }
272 return static_cast<int16_t>(sum / mult);
273}
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:82
fl::scoped_ptr< WaveSimulation1D_Real > mSim
bool has(size_t x) const
#define MAX(a, b)
Definition math_macros.h:11

References has(), MAX, mMultiplier, mSim, and x.

Referenced by geti16All(), geti8(), and getu8().

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