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

◆ volumeToScale255()

fl::u8 fl::audio::Reactive::volumeToScale255 ( ) const

Definition at line 573 of file audio_reactive.cpp.hpp.

573 {
574 float scaled = mCurrentData.volume * 255.0f;
575 if (scaled < 0.0f) scaled = 0.0f;
576 if (scaled > 255.0f) scaled = 255.0f;
577 return static_cast<fl::u8>(scaled);
578}
unsigned char u8
Definition s16x16x4.h:132

References mCurrentData.

Referenced by volumeToColor().

+ Here is the caller graph for this function: