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

◆ switchAnimationIfNeeded()

void animartrix_ring::SoundOrchestrator::switchAnimationIfNeeded ( SoundState newState,
fl::u32 nowMs )
private

Definition at line 93 of file sound_orchestrator.cpp.

93 {
95 if (desired != mCurrentAnim && mAnimartrix) {
96 mCurrentAnim = desired;
97 mAnimartrix->fxSet(static_cast<int>(desired));
98 }
99}
static fl::AnimartrixAnim pickAnimationFor(SoundState s, fl::u32 nowMs)
fl::shared_ptr< fl::Animartrix > mAnimartrix
AnimartrixAnim

References mAnimartrix, mCurrentAnim, mState, and pickAnimationFor().

Referenced by tick().

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