src/audio/SDL_audiotypecvt.c
changeset 10838 57ac8b68d7c8
parent 10837 c2f241c2f6ad
child 11403 4cdc242e4102
     1.1 --- a/src/audio/SDL_audiotypecvt.c	Mon Jan 23 12:06:10 2017 -0500
     1.2 +++ b/src/audio/SDL_audiotypecvt.c	Mon Jan 23 12:14:28 2017 -0500
     1.3 @@ -639,7 +639,7 @@
     1.4  
     1.5      /* Finish off any leftovers with scalar operations. */
     1.6      while (i) {
     1.7 -        *dst = (((float) *src) * DIVBY32767);
     1.8 +        *dst = (Sint16) (*src * 32767.0f);
     1.9          i--; src++; dst++;
    1.10      }
    1.11