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

◆ reset()

void fl::audio::SynthOscillatorImpl::reset ( )
overridevirtual

Reset oscillator to beginning of cycle.

Implements fl::audio::ISynthOscillator.

Definition at line 205 of file synth.cpp.hpp.

205 {
206 if (mHexWave && mEngine) {
207 // Re-create the oscillator with current parameters
208 hw::hexwave_create(
209 mHexWave,
210 mEngine->getEngineInternal(),
211 mCurrentParams.reflect,
212 mCurrentParams.peakTime,
213 mCurrentParams.halfHeight,
214 mCurrentParams.zeroWait
215 );
216 }
217}
fl::shared_ptr< SynthEngineImpl > mEngine
Definition synth.cpp.hpp:72

References mCurrentParams, mEngine, and mHexWave.