Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 5e5f229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/SDL_audiocvt.c
Expand Up @@ -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);
Expand Down

0 comments on commit 5e5f229

Please sign in to comment.