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:
parent
2af4200877
commit
7840becd3f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue