mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
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.
This commit is contained in:
parent
9bd2c6b491
commit
5e5f2290f2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user