Skip to content

Commit

Permalink
audio: Fixed copy/paste bug in float32->sint16/SSE2 scalar leftover c…
Browse files Browse the repository at this point in the history
…ode.
  • Loading branch information
icculus committed Jan 23, 2017
1 parent 4b8f354 commit ecdc6c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/SDL_audiotypecvt.c
Expand Up @@ -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++;
}

Expand Down

0 comments on commit ecdc6c1

Please sign in to comment.