FastLED 3.9.15
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
void * memset(void *s, int c, size_t n) FL_NOEXCEPT
void * malloc(size_t size)
Definition malloc.cpp.hpp:9

References fl::audio::SynthParams::halfHeight, fl::malloc(), mCurrentParams, fl::memset(), mEngine, mHexWave, fl::audio::SynthParams::peakTime, fl::audio::SynthParams::reflect, and fl::audio::SynthParams::zeroWait.

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

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