mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-18 18:11:05 +00:00
Fix incorrect usage of fluid_ct2hz() (#568)
This commit is contained in:
parent
3c4861c752
commit
cab46b40c1
1 changed files with 2 additions and 2 deletions
|
@ -825,7 +825,7 @@ fluid_voice_update_param(fluid_voice_t *voice, int gen)
|
|||
voice->root_pitch = voice->sample->origpitch * 100.0f - voice->sample->pitchadj;
|
||||
}
|
||||
|
||||
x = (fluid_ct2hz(voice->root_pitch) * ((fluid_real_t) voice->output_rate / voice->sample->samplerate));
|
||||
x = (fluid_ct2hz_real(voice->root_pitch) * ((fluid_real_t) voice->output_rate / voice->sample->samplerate));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -838,7 +838,7 @@ fluid_voice_update_param(fluid_voice_t *voice, int gen)
|
|||
voice->root_pitch = 0;
|
||||
}
|
||||
|
||||
x = fluid_ct2hz(voice->root_pitch);
|
||||
x = fluid_ct2hz_real(voice->root_pitch);
|
||||
}
|
||||
|
||||
/* voice->pitch depends on voice->root_pitch, so calculate voice->pitch now */
|
||||
|
|
Loading…
Reference in a new issue