Avoid recreating the DSound primary buffer
This commit is contained in:
parent
fc7adccd6f
commit
b92ad830ef
@ -547,7 +547,7 @@ retry_open:
|
||||
}
|
||||
else
|
||||
{
|
||||
if(SUCCEEDED(hr))
|
||||
if(SUCCEEDED(hr) && !data->DSpbuffer)
|
||||
{
|
||||
memset(&DSBDescription,0,sizeof(DSBUFFERDESC));
|
||||
DSBDescription.dwSize=sizeof(DSBUFFERDESC);
|
||||
|
Loading…
x
Reference in New Issue
Block a user