only log directsound drivers once

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