Maarten Lankhorst : dsound: Make sure device buflen is initially set to ds_hel_buflen.

Alexandre Julliard julliard at winehq.org
Mon Oct 15 11:28:07 CDT 2007


Module: wine
Branch: master
Commit: 3230ea026a4d09bc08b495c4ae321a2db57c14cc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3230ea026a4d09bc08b495c4ae321a2db57c14cc

Author: Maarten Lankhorst <maarten at codeweavers.com>
Date:   Sat Oct 13 19:41:05 2007 +0200

dsound: Make sure device buflen is initially set to ds_hel_buflen.

---

 dlls/dsound/primary.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/dsound/primary.c b/dlls/dsound/primary.c
index 8e15cc5..57facf8 100644
--- a/dlls/dsound/primary.c
+++ b/dlls/dsound/primary.c
@@ -148,9 +148,8 @@ static HRESULT DSOUND_PrimaryOpen(DirectSoundDevice *device)
 	/* on original windows, the buffer it set to a fixed size, no matter what the settings are.
 	   on windows this size is always fixed (tested on win-xp) */
 	if (!device->buflen)
-		buflen = ds_hel_buflen;
-	else /* In case we move from hw accelerated to waveout */
-		buflen = device->buflen;
+		device->buflen = ds_hel_buflen;
+	buflen = device->buflen;
 	buflen -= buflen % device->pwfx->nBlockAlign;
 	device->buflen = buflen;
 




More information about the wine-cvs mailing list