From 61821bd87601b3aaed7d378326bc51643cf617e5 Mon Sep 17 00:00:00 2001 From: pionere Date: Mon, 22 Jan 2024 16:00:47 +0100 Subject: [PATCH] fix audio conversion from S16 to F32 using SSE2 --- src/audio/SDL_audiotypecvt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/SDL_audiotypecvt.c b/src/audio/SDL_audiotypecvt.c index c4f30e687..53c8ffe69 100644 --- a/src/audio/SDL_audiotypecvt.c +++ b/src/audio/SDL_audiotypecvt.c @@ -427,7 +427,7 @@ static void SDLCALL SDL_Convert_U8_to_F32_SSE2(SDL_AudioCVT *cvt, SDL_AudioForma static void SDLCALL SDL_Convert_S16_to_F32_SSE2(SDL_AudioCVT *cvt, SDL_AudioFormat format) { - const Sint8 *src = (const Sint8 *)cvt->buf; + const Sint16 *src = (const Sint16 *)cvt->buf; float *dst = (float *)cvt->buf; int i = cvt->len_cvt / 2;