Chris Jacobson

Small bug fix.
This commit is contained in:
Alexandre Julliard 2001-03-03 00:19:29 +00:00
parent 726c63b945
commit ddf825660e
1 changed files with 2 additions and 2 deletions

View File

@ -603,7 +603,7 @@ static int DSOUND_Create3DBuffer(IDirectSoundBufferImpl* dsb)
if (wTbuf == NULL)
return DSERR_OUTOFMEMORY;
for (i = 0; i < iSize; i++)
wTbuf[i] = (dsb->buffer[i] + dsb->buffer[(i * 2) + 1]) / 2;
wTbuf[i] = (dsb->buffer[i * 2] + dsb->buffer[(i * 2) + 1]) / 2;
wIbuf = wTbuf;
} else {
iSize = dsb->buflen / 2;
@ -611,7 +611,7 @@ static int DSOUND_Create3DBuffer(IDirectSoundBufferImpl* dsb)
if (bTbuf == NULL)
return DSERR_OUTOFMEMORY;
for (i = 0; i < iSize; i++)
bTbuf[i] = (dsb->buffer[i] + dsb->buffer[(i * 2) + 1]) / 2;
bTbuf[i] = (dsb->buffer[i * 2] + dsb->buffer[(i * 2) + 1]) / 2;
bIbuf = bTbuf;
}
} else {