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

◆ create() [2/2]

ISynthOscillatorPtr fl::audio::ISynthOscillator::create ( ISynthEnginePtr engine,
SynthShape shape = SynthShape::Sawtooth )
static

Factory function to create an oscillator with specified engine and shape.

Parameters
engineShared pointer to the engine to use (keeps engine alive)
shapePredefined waveform shape
Returns
Shared pointer to the oscillator

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

133 {
134 return create(engine, SynthParams::fromShape(shape));
135}
static ISynthOscillatorPtr create(ISynthEnginePtr engine, const SynthParams &params)
Factory function to create an oscillator with specified engine and parameters.
static SynthParams fromShape(SynthShape shape)
Create parameters for a predefined shape.
Definition synth.cpp.hpp:78

References create(), and fl::audio::SynthParams::fromShape().

+ Here is the call graph for this function: