FastLED 3.10.8
Loading...
Searching...
No Matches

◆ SynthOscillatorImpl() [1/2]

fl::audio::SynthOscillatorImpl::SynthOscillatorImpl ( fl::shared_ptr< SynthEngineImpl > engine,
const SynthParams & params )

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

151 : mEngine(engine), mCurrentParams(params) {
152 // Allocate HexWave structure
153 mHexWave = static_cast<hw::HexWave*>(fl::malloc(sizeof(hw::HexWave)));
154 fl::memset(mHexWave, 0, sizeof(hw::HexWave));
155
156 // Initialize the oscillator with the engine
157 hw::hexwave_create(
158 mHexWave,
159 engine->getEngineInternal(),
160 params.reflect,
161 params.peakTime,
162 params.halfHeight,
163 params.zeroWait
164 );
165}
fl::shared_ptr< SynthEngineImpl > mEngine
Definition synth.cpp.hpp:72
FASTLED_FORCE_INLINE void * malloc(size_t size) FL_NO_EXCEPT
Definition malloc.h:21
FASTLED_FORCE_INLINE void * memset(void *s, int c, size_t n) FL_NO_EXCEPT
Definition cstring.h:148

References fl::FL_NO_EXCEPT, fl::malloc(), mCurrentParams, fl::memset(), mEngine, and mHexWave.

Referenced by SynthOscillatorImpl(), and operator=().

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