dsound: Fix CheckEvent in mixer.

This commit is contained in:
Maarten Lankhorst 2007-07-12 12:38:29 +02:00 committed by Alexandre Julliard
parent f94114a88d
commit 59a5669a97

View File

@ -622,7 +622,7 @@ static DWORD DSOUND_MixOne(IDirectSoundBufferImpl *dsb, DWORD playpos, DWORD wri
/* check for notification positions */
if (dsb->dsbd.dwFlags & DSBCAPS_CTRLPOSITIONNOTIFY &&
dsb->state != STATE_STARTING) {
DSOUND_CheckEvent(dsb, writepos, mixlen);
DSOUND_CheckEvent(dsb, writepos, mixlen / dsb->device->pwfx->nBlockAlign * dsb->pwfx->nBlockAlign);
}
/* increase mix position */