From 59a5669a97e0ebd5b738c1b51d79bd482ade97ac Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Thu, 12 Jul 2007 12:38:29 +0200 Subject: [PATCH] dsound: Fix CheckEvent in mixer. --- dlls/dsound/mixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/dsound/mixer.c b/dlls/dsound/mixer.c index 64ac3c9add..f2bee0dc6d 100644 --- a/dlls/dsound/mixer.c +++ b/dlls/dsound/mixer.c @@ -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 */