audio_oscillator(audio_sample_rate aSampleRate, float aFrequency, float aAmplitude=1.0f, oscillator_function aFunction=oscillator_function::Sine)
void generate_from(audio_sample_index aSampleFrom, audio_sample_count aSampleCount, float *aOutputSamples) final
void generate(audio_sample_count aSampleCount, float *aOutputSamples) final
void set_frequency(float aFrequency) final
void set_amplitude(float aAmplitude) final
float amplitude() const final
void set_sample_rate(audio_sample_rate aSampleRate) final
void set_function(oscillator_function aFunction) final
audio_oscillator(audio_sample_rate aSampleRate, float aFrequency, float aAmplitude, std::function< float(float)> const &aFunction)
audio_sample_rate sample_rate() const final
oscillator_function function() const final
float frequency() const final
std::uint64_t audio_sample_count
std::uint64_t audio_sample_index
std::uint64_t audio_sample_rate