mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-14 06:43:27 +00:00
add a comment
This commit is contained in:
parent
34079f1ae1
commit
ecaa3007b2
1 changed files with 5 additions and 0 deletions
|
@ -92,6 +92,11 @@ static void ResampleSfx (sfx_t *sfx, int inrate, int inwidth, byte *data)
|
|||
if (stepscale < 1)
|
||||
{
|
||||
// upsampling
|
||||
|
||||
// linearly interpolate between the two closest source samples.
|
||||
// this alone sounds much better than id's method, but still produces
|
||||
// high-frequency junk.
|
||||
|
||||
for (i = 0, samplefrac = 0; i < outcount; i++, samplefrac += stepscale)
|
||||
{
|
||||
int srcsample1 = CLAMP(0, floor(samplefrac), incount - 1);
|
||||
|
|
Loading…
Reference in a new issue