MCPcopy Create free account
hub / github.com/FastLED/FastLED / reset

Method reset

src/fl/audio/synth.cpp.hpp:205–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void SynthOscillatorImpl::reset() {
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}
218
219} // namespace audio
220} // namespace fl

Callers 2

removeMethod · 0.45
putMethod · 0.45

Calls 1

getEngineInternalMethod · 0.80

Tested by

no test coverage detected