From 6ad603d2198fad0ad76be9a3ce339ce243d17928 Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Tue, 9 Oct 2007 08:52:11 +0200 Subject: [PATCH] dsound: Release buffer before reopening when buffer is too small. --- dlls/dsound/primary.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/dsound/primary.c b/dlls/dsound/primary.c index 615b6f28367..8e15cc559d9 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)) { -- 2.11.4.GIT