- Fix a compiler warning

- Fix the detection of the enumeration extensions
- Fix default device for s_alInputDevice
- Adjust formatting of S_AL_Info output
This commit is contained in:
Thilo Schulz 2011-03-09 23:34:15 +00:00
parent e5cec15fbf
commit a3def2744f

View file

@ -45,7 +45,7 @@ cvar_t *s_alInputDevice;
cvar_t *s_alAvailableDevices;
cvar_t *s_alAvailableInputDevices;
static enumeration_ext = qfalse;
static qboolean enumeration_ext = qfalse;
/*
=================
@ -2366,8 +2366,8 @@ qboolean S_AL_Init( soundInterface_t *si )
s_alGraceDistance = Cvar_Get("s_alGraceDistance", "512", CVAR_CHEAT);
s_alDriver = Cvar_Get( "s_alDriver", ALDRIVER_DEFAULT, CVAR_ARCHIVE | CVAR_LATCH );
s_alInputDevice = Cvar_Get( "s_alInputDevice", ALDRIVER_DEFAULT, CVAR_ARCHIVE | CVAR_LATCH );
s_alInputDevice = Cvar_Get( "s_alInputDevice", "", CVAR_ARCHIVE | CVAR_LATCH );
s_alDevice = Cvar_Get("s_alDevice", "", CVAR_ARCHIVE | CVAR_LATCH);
// Load QAL
@ -2386,8 +2386,8 @@ qboolean S_AL_Init( soundInterface_t *si )
inputdevice = NULL;
// Device enumeration support
if(qalcIsExtensionPresent(NULL, "ALC_ENUMERATION_EXT") ||
(enumeration_ext = qalcIsExtensionPresent(NULL, "ALC_ENUMERATE_ALL_EXT"))
if((enumeration_ext = qalcIsExtensionPresent(NULL, "ALC_ENUMERATE_ALL_EXT")) ||
qalcIsExtensionPresent(NULL, "ALC_ENUMERATION_EXT")
)
{
char devicenames[1024] = "";