diff --git a/src/audio/SDL_audiocvt.c b/src/audio/SDL_audiocvt.c index 9bfe6d5d1..4c8db0fc5 100644 --- a/src/audio/SDL_audiocvt.c +++ b/src/audio/SDL_audiocvt.c @@ -527,7 +527,7 @@ SDL_ResampleAudio(const int chans, const int inrate, const int outrate, *(dst++) = outsample; } - outtime = i * outtimeincr; + outtime += outtimeincr; } return outframes * chans * sizeof (float);