From b92ad830efeaebdde42fa0ffecf7324300cd6d44 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 4 Nov 2012 00:37:31 -0700 Subject: Avoid recreating the DSound primary buffer --- Alc/backends/dsound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc') diff --git a/Alc/backends/dsound.c b/Alc/backends/dsound.c index ba144ae3..8e5f6f03 100644 --- a/Alc/backends/dsound.c +++ b/Alc/backends/dsound.c @@ -547,7 +547,7 @@ retry_open: } else { - if(SUCCEEDED(hr)) + if(SUCCEEDED(hr) && !data->DSpbuffer) { memset(&DSBDescription,0,sizeof(DSBUFFERDESC)); DSBDescription.dwSize=sizeof(DSBUFFERDESC); -- cgit v1.2.3