Skip to content
Permalink
Browse files

audio: Turns out the accumulation errors sound better. :/

Moving to double fixed the overflows, but using "time = i * incr" instead of
"time += incr" causes clicks in the output.
  • Loading branch information
icculus committed Oct 11, 2017
1 parent 9bd2c6b commit 5e5f2290f288551ec70ed39715c4b726d8d9856e
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit 5e5f229

Please sign in to comment.