dsound: Release buffer before reopening when buffer is too small.

This commit is contained in:
Maarten Lankhorst 2007-10-09 08:52:11 +02:00 committed by Alexandre Julliard
parent d322d63b10
commit 6ad603d219
1 changed files with 2 additions and 0 deletions

View File

@ -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))
{