only log directsound drivers once
This commit is contained in:
@@ -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 );
|
||||||
|
|||||||
Reference in New Issue
Block a user