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

◆ geti16()

i16 fl::WaveSimulation1D::geti16 ( fl::size x) const

Definition at line 302 of file wave_simulation.cpp.

302 {
303 if (!has(x))
304 return 0;
305 u8 mult = MAX(1, mMultiplier);
306 i32 sum = 0;
307 for (u32 i = 0; i < mult; ++i) {
308 sum += mSim->geti16(x * mult + i);
309 }
310 return static_cast<i16>(sum / mult);
311}
int x
Definition simple.h:92
fl::unique_ptr< WaveSimulation1D_Real > mSim
bool has(fl::size x) const
#define MAX(a, b)
Definition math_macros.h:45
unsigned char u8
Definition int.h:17

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: