mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-17 11:38:49 +00:00
audio: Avoid accumulation errors in resampler.
Fixes #6391.
(cherry picked from commit 78f97108f9)
This commit is contained in:
parent
55b03c7493
commit
c93900437f
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue