audio: Avoid accumulation errors in resampler.

Fixes #6391.
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;
}
outtime += outtimeincr;
outtime = outtimeincr * i;
}
return outframes * chans * sizeof (float);