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

◆ geti16()

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

Definition at line 265 of file wave_simulation.cpp.

265 {
266 if (!has(x))
267 return 0;
268 u8 mult = MAX(1, mMultiplier);
269 i32 sum = 0;
270 for (u32 i = 0; i < mult; ++i) {
271 sum += mSim->geti16(x * mult + i);
272 }
273 return static_cast<i16>(sum / mult);
274}
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:37
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: