- Remove alext.h dependency and manually add the required macros
- Use ALC_DEFAULT_ALL_DEVICES_SPECIFIER instead of ALC_DEFAULT_DEVICE_SPECIFIER if extension exists
This commit is contained in:
parent
1b27ae23c1
commit
182b344818
2 changed files with 11 additions and 3 deletions
|
@ -2397,16 +2397,18 @@ qboolean S_AL_Init( soundInterface_t *si )
|
|||
|
||||
// get all available devices + the default device name.
|
||||
if(enumeration_ext)
|
||||
{
|
||||
devicelist = qalcGetString(NULL, ALC_ALL_DEVICES_SPECIFIER);
|
||||
defaultdevice = qalcGetString(NULL, ALC_DEFAULT_ALL_DEVICES_SPECIFIER);
|
||||
}
|
||||
else
|
||||
{
|
||||
// We don't have ALC_ENUMERATE_ALL_EXT but normal enumeration.
|
||||
devicelist = qalcGetString(NULL, ALC_DEVICE_SPECIFIER);
|
||||
defaultdevice = qalcGetString(NULL, ALC_DEFAULT_DEVICE_SPECIFIER);
|
||||
enumeration_ext = qtrue;
|
||||
}
|
||||
|
||||
defaultdevice = qalcGetString(NULL, ALC_DEFAULT_DEVICE_SPECIFIER);
|
||||
|
||||
#ifdef _WIN32
|
||||
// check whether the default device is generic hardware. If it is, change to
|
||||
// Generic Software as that one works more reliably with various sound systems.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue