[PATCH] dsound: Make sure device buflen is set to ds_hel_buflen initially
Maarten Lankhorst
maarten at codeweavers.com
Sat Oct 13 12:41:05 CDT 2007
---
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;
--
1.5.2.5
--------------000300000602060008020600--
More information about the wine-patches
mailing list