mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-22 07:30:50 +00:00
Fix rounding for triangular modulation waveform
This commit is contained in:
parent
57de2bf45a
commit
a4bccd9a49
1 changed files with 2 additions and 1 deletions
|
@ -518,7 +518,8 @@ fluid_chorus_triangle(int *buf, int len, int depth)
|
|||
|
||||
/* Build triangular modulation waveform */
|
||||
while (il <= ir) {
|
||||
ival= (int)(val + 0.5);
|
||||
/* Assume 'val' to be always negative for rounding mode */
|
||||
ival = (int)(val - 0.5);
|
||||
|
||||
*il++ = ival;
|
||||
*ir-- = ival;
|
||||
|
|
Loading…
Reference in a new issue