Prevent dsb->buf_mixpos from ever remaining past dsb->buflen even if

not in DSBPLAY_LOOPING case, to prevent assertion failure in
DSOUND_MixInBuffer.
This commit is contained in:
Alex Villacís Lasso 2005-08-02 09:47:32 +00:00 committed by Alexandre Julliard
parent 2af4200877
commit 7840becd3f
1 changed files with 1 additions and 0 deletions

View File

@ -491,6 +491,7 @@ static DWORD DSOUND_MixInBuffer(IDirectSoundBufferImpl *dsb, DWORD writepos, DWO
if (dsb->leadin && (dsb->startpos <= dsb->buf_mixpos))
dsb->leadin = FALSE; /* HACK: see above */
}
else dsb->buf_mixpos = 0; /* %= dsb->buflen; */
}
return len;