audio: Fixed copy/paste bug in float32->sint16/SSE2 scalar leftover code.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 23 Jan 2017 12:14:28 -0500
changeset 1083857ac8b68d7c8
parent 10837 c2f241c2f6ad
child 10839 64f7fccca56e
audio: Fixed copy/paste bug in float32->sint16/SSE2 scalar leftover code.
src/audio/SDL_audiotypecvt.c
     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