mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-27 06:22:06 +00:00
Extend comment in fluid_ct2hz_real()
This commit is contained in:
parent
fa7354a336
commit
5a42e8147f
1 changed files with 2 additions and 1 deletions
|
@ -67,7 +67,8 @@ fluid_ct2hz_real(fluid_real_t cents)
|
|||
// Assuming sizeof(uint)==4 this will give us a maximum range of
|
||||
// 32 * 1200cents - 300cents == 38100 cents == 29,527,900,160 Hz
|
||||
// which is much more than ever needed. For bigger values, just
|
||||
// safely wrap around.
|
||||
// safely wrap around (the & is just a replacement for the quick
|
||||
// modulo operation % 32).
|
||||
mult = 1u << (fac & (sizeof(mult)*8u - 1u));
|
||||
|
||||
// don't use ldexp() either (poor performance)
|
||||
|
|
Loading…
Reference in a new issue