audio: Patched to compile on Visual Studio.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 21 May 2018 11:54:09 -0400
changeset 11993fdf104726ced
parent 11992 08c415f14810
child 11994 8e094f91ddab
audio: Patched to compile on Visual Studio.

(It gets upset at the -2147483648, thinking this should be an unsigned value
because 2147483648 is too large for an int32, so the negative sign upsets the
compiler.)
src/audio/SDL_audiotypecvt.c
     1.1 --- a/src/audio/SDL_audiotypecvt.c	Wed May 16 02:03:06 2018 -0400
     1.2 +++ b/src/audio/SDL_audiotypecvt.c	Mon May 21 11:54:09 2018 -0400
     1.3 @@ -279,7 +279,7 @@
     1.4          if (sample >= 1.0f) {
     1.5              *dst = 2147483647;
     1.6          } else if (sample <= -1.0f) {
     1.7 -            *dst = -2147483648;
     1.8 +            *dst = (Sint32) -2147483648LL;
     1.9          } else {
    1.10              *dst = ((Sint32)(sample * 8388607.0f)) << 8;
    1.11          }