diff options
author | Chris Robinson <[email protected]> | 2012-11-04 00:37:31 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-11-04 00:37:31 -0700 |
commit | b92ad830efeaebdde42fa0ffecf7324300cd6d44 (patch) | |
tree | 75d585bd898cc04145c1792e0c441edee1ff4139 | |
parent | fc7adccd6fbe00b86e3d9451cf8cb0c37297a684 (diff) |
Avoid recreating the DSound primary buffer
-rw-r--r-- | Alc/backends/dsound.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |