[PATCH] dsound: Close before reopening when buffer is too small
Maarten Lankhorst
maarten at codeweavers.com
Tue Oct 9 01:52:11 CDT 2007
---
dlls/dsound/primary.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/dsound/primary.c b/dlls/dsound/primary.c
index 615b6f2..8e15cc5 100644
--- a/dlls/dsound/primary.c
+++ b/dlls/dsound/primary.c
@@ -176,6 +176,8 @@ static HRESULT DSOUND_PrimaryOpen(DirectSoundDevice *device)
{
WARN("Too little sound buffer to be effective (%d/%d) falling back to waveout\n", device->buflen, ds_snd_queue_min * device->fraglen);
device->buflen = buflen;
+ IDsDriverBuffer_Release(device->hwbuf);
+ device->hwbuf = NULL;
err = DSOUND_ReopenDevice(device, TRUE);
if (FAILED(err))
{
--
1.5.2.5
--------------000500010509000408040107--
More information about the wine-patches
mailing list