audio: Turns out the accumulation errors sound better. :/
authorRyan C. Gordon <icculus@icculus.org>
Wed, 11 Oct 2017 12:07:43 -0400
changeset 115969d8ea0382c52
parent 11595 091789122901
child 11597 7ee20a756f96
audio: Turns out the accumulation errors sound better. :/

Moving to double fixed the overflows, but using "time = i * incr" instead of
"time += incr" causes clicks in the output.
src/audio/SDL_audiocvt.c
     1.1 --- a/src/audio/SDL_audiocvt.c	Wed Oct 11 11:51:14 2017 -0400
     1.2 +++ b/src/audio/SDL_audiocvt.c	Wed Oct 11 12:07:43 2017 -0400
     1.3 @@ -527,7 +527,7 @@
     1.4              *(dst++) = outsample;
     1.5          }
     1.6  
     1.7 -        outtime = i * outtimeincr;
     1.8 +        outtime += outtimeincr;
     1.9      }
    1.10  
    1.11      return outframes * chans * sizeof (float);