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

◆ geti16Previous()

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

Definition at line 269 of file wave_simulation.cpp.

269 {
270 if (!has(x))
271 return 0;
272 int32_t sum = 0;
273 for (uint32_t i = 0; i < mMultiplier; ++i) {
274 sum += mSim->geti16Previous(x * mMultiplier + i);
275 }
276 return static_cast<int16_t>(sum / mMultiplier);
277}
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().

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