fix slight "tick tick" in interpolated audio resmapling. found it.

SVN revision: 64936
This commit is contained in:
Carsten Haitzler 2011-11-08 07:10:33 +00:00
parent bdc764dc16
commit 44d95d00ea
1 changed files with 2 additions and 2 deletions

View File

@ -270,7 +270,7 @@ remix_pcm_resample(SndInstanceData *si)
src = srcbase + (pos * chnum);
if (chnum == 2)
{
if (i == 0)
if (pos == 0)
{
psam[0] = si->prevreadbuf[0];
psam[1] = si->prevreadbuf[1];
@ -285,7 +285,7 @@ remix_pcm_resample(SndInstanceData *si)
}
else
{
if (i == 0)
if (pos == 0)
psam[0] = si->prevreadbuf[0];
else
psam[0] = src[0 - 1];