Module: wine Branch: master Commit: 6ad603d2198fad0ad76be9a3ce339ce243d17928 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6ad603d2198fad0ad76be9a3ce...
Author: Maarten Lankhorst m.b.lankhorst@gmail.com Date: Tue Oct 9 08:52:11 2007 +0200
dsound: Release buffer before reopening when buffer is too small.
---
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)) {