Module: wine Branch: master Commit: 59a5669a97e0ebd5b738c1b51d79bd482ade97ac URL: http://source.winehq.org/git/wine.git/?a=commit;h=59a5669a97e0ebd5b738c1b51d...
Author: Maarten Lankhorst m.b.lankhorst@gmail.com Date: Thu Jul 12 12:38:29 2007 +0200
dsound: Fix CheckEvent in mixer.
---
dlls/dsound/mixer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/dsound/mixer.c b/dlls/dsound/mixer.c index 64ac3c9..f2bee0d 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 */