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

◆ volumeToScale255()

fl::u8 fl::AudioReactive::volumeToScale255 ( ) const

Definition at line 363 of file audio_reactive.cpp.

363 {
364 float vol = (mCurrentData.volume < 0.0f) ? 0.0f : ((mCurrentData.volume > 255.0f) ? 255.0f : mCurrentData.volume);
365 return static_cast<fl::u8>(vol);
366}
unsigned char u8
Definition int.h:17

References mCurrentData.

Referenced by volumeToColor().

+ Here is the caller graph for this function: