dsound: Fix CheckEvent in mixer

Maarten Lankhorst m.b.lankhorst at gmail.com
Thu Jul 26 18:01:54 CDT 2007


Tiny bugfix
-------------- next part --------------
>From d8b945d2ef5765bfe8fb0f08b075f4857d3fd6b9 Mon Sep 17 00:00:00 2001
From: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date: Thu, 12 Jul 2007 12:38:29 +0200
Subject: [PATCH] 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 */
-- 
1.4.4.2



More information about the wine-patches mailing list