Avoid recreating the DSound primary buffer

This commit is contained in:
Chris Robinson 2012-11-04 00:37:31 -07:00
parent fc7adccd6f
commit b92ad830ef

View File

@ -547,7 +547,7 @@ retry_open:
}
else
{
if(SUCCEEDED(hr))
if(SUCCEEDED(hr) && !data->DSpbuffer)
{
memset(&DSBDescription,0,sizeof(DSBUFFERDESC));
DSBDescription.dwSize=sizeof(DSBUFFERDESC);