/* This file is part of the Simba project.  */
static q20_11_t frequency_to_phase_increment(float frequency, size_t waveform_length, int sample_rate)
/* This file is part of the Simba project.  */
static q20_11_t frequency_to_phase_increment(float frequency, size_t waveform_length, int sample_rate)
{
    return FLOAT_TO_Q20_11(((frequency * waveform_length)
                            / sample_rate));
}