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

◆ geti16()

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

Definition at line 259 of file wave_simulation.cpp.

259 {
260 if (!has(x))
261 return 0;
262 int32_t sum = 0;
263 for (uint32_t i = 0; i < mMultiplier; ++i) {
264 sum += mSim->geti16(x * mMultiplier + i);
265 }
266 return static_cast<int16_t>(sum / mMultiplier);
267}
int x
Definition Audio.ino:71
fl::scoped_ptr< WaveSimulation1D_Real > mSim
bool has(size_t x) const

References has(), 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: