1
0
Fork 0
mirror of https://github.com/Ryujinx/SDL.git synced 2025-01-12 09:35:31 +00:00

audio: Avoid accumulation errors in resampler.

Fixes .
This commit is contained in:
Ryan C. Gordon 2022-11-05 10:38:33 -04:00
parent 689218ebf5
commit 78f97108f9
No known key found for this signature in database
GPG key ID: FA148B892AB48044

View file

@ -247,7 +247,7 @@ SDL_ResampleAudio(const int chans, const int inrate, const int outrate,
*(dst++) = outsample; *(dst++) = outsample;
} }
outtime += outtimeincr; outtime = outtimeincr * i;
} }
return outframes * chans * sizeof (float); return outframes * chans * sizeof (float);