mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
audio: Fixed copy/paste bug in float32->sint16/SSE2 scalar leftover code.
This commit is contained in:
parent
4b8f354668
commit
ecdc6c1207
@ -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++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user