Explorar el Código

audio: Fixed copy/paste bug in float32->sint16/SSE2 scalar leftover code.

Ryan C. Gordon hace 8 años
padre
commit
ecdc6c1207
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/audio/SDL_audiotypecvt.c

+ 1 - 1
src/audio/SDL_audiotypecvt.c

@@ -639,7 +639,7 @@ SDL_Convert_F32_to_S16_SSE2(SDL_AudioCVT *cvt, SDL_AudioFormat format)
 
     /* Finish off any leftovers with scalar operations. */
     while (i) {
-        *dst = (((float) *src) * DIVBY32767);
+        *dst = (Sint16) (*src * 32767.0f);
         i--; src++; dst++;
     }