Renders the current effect or transition to the output buffer.
- Parameters
-
| now | The current time in milliseconds. |
| outputBuffer | The buffer to render the effect into. |
Definition at line 96 of file fx_engine.cpp.hpp.
96 {
99
100
103
104
105
106
109 }
110
111
113 AudioFrame af;
119 af.timestamp = now;
121 }
122
123
124
127 const AudioBatch *audioPtr =
129
131 return false;
132 }
134 FxPtr fx;
136 if (!ok) {
137
138 return false;
139 }
142 }
146 }
147 return true;
148}
fl::vector< AudioFrame > mAudioBack
bool mDurationSet
Flag indicating if a new transition has been set.
FxCompositor mCompositor
Handles effect transitions and rendering.
int mCurrId
Id of the current effect.
fl::vector< AudioFrame > mAudioFront
fl::shared_ptr< fl::audio::Processor > mAudioProcessor
u16 mDuration
Duration of the current transition.
IntFxMap mEffects
Collection of effects.
static Scheduler & instance()
References fl::AudioFrame::bass, fl::AudioFrame::beat, fl::task::Scheduler::instance(), mAudioBack, mAudioFront, mAudioProcessor, mCompositor, mCurrId, mDuration, mDurationSet, mEffects, fl::AudioFrame::mid, mTimeFunction, speed, fl::AudioFrame::timestamp, fl::AudioFrame::treble, fl::task::Scheduler::update(), and fl::AudioFrame::volume.