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

◆ getu8()

uint8_t fl::WaveSimulation1D::getu8 ( size_t x) const

Definition at line 308 of file wave_simulation.cpp.

308 {
309 int16_t value = geti16(x);
310 if (mSim->getHalfDuplex()) {
311 uint16_t v2 = static_cast<uint16_t>(value);
312 switch (mU8Mode) {
314 return half_duplex_blend_linear(v2);
317 }
318 }
319 return static_cast<uint8_t>(((static_cast<uint16_t>(value) + 32768)) >> 8);
320}
int x
Definition Audio.ino:71
fl::scoped_ptr< WaveSimulation1D_Real > mSim
int16_t geti16(size_t x) const
U8EasingFunction mU8Mode
@ WAVE_U8_MODE_LINEAR
@ WAVE_U8_MODE_SQRT

References geti16(), mSim, mU8Mode, fl::WAVE_U8_MODE_LINEAR, fl::WAVE_U8_MODE_SQRT, and x.

+ Here is the call graph for this function: