only log directsound drivers once

This commit is contained in:
Glenn Maynard
2004-03-26 06:39:29 +00:00
parent 1c4d9460ee
commit ea9c722a4e
+7 -2
View File
@@ -90,8 +90,13 @@ DSound::DSound()
RageException::ThrowNonfatal(hr_ssprintf(hr, "DirectSoundCreate"));
#ifndef _XBOX
DirectSoundEnumerate(EnumCallback, 0);
static bool bShownInfo = false;
if( !bShownInfo )
{
bShownInfo = true;
DirectSoundEnumerate(EnumCallback, 0);
}
/* Try to set primary mixing privileges */
hr = ds->SetCooperativeLevel( GetDesktopWindow(), DSSCL_PRIORITY );
#endif