51 virtual void set_function(std::function<
float(
float)>
const& aFunction) = 0;
virtual void set_sample_rate(audio_sample_rate aSampleRate)=0
virtual ~i_audio_oscillator()=default
virtual void set_function(std::function< float(float)> const &aFunction)=0
Note: not plugin-safe.
virtual audio_sample_rate sample_rate() const =0
virtual oscillator_function function() const =0
virtual void generate_from(audio_sample_index aSampleFrom, audio_sample_count aSampleCount, float *aOutputSamples)=0
virtual void generate(audio_sample_count aSampleCount, float *aOutputSamples)=0
virtual void set_frequency(float aFrequency)=0
virtual void set_amplitude(float aAmplitude)=0
virtual float frequency() const =0
i_audio_oscillator abstract_type
virtual void set_function(oscillator_function aFunction)=0
virtual float amplitude() const =0
std::uint64_t audio_sample_count
std::uint64_t audio_sample_index
std::uint64_t audio_sample_rate