mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-02-18 10:02:50 +00:00
IOQ3 commit 1918
This commit is contained in:
parent
3baaf13ac0
commit
27355afd3b
1 changed files with 16 additions and 4 deletions
|
@ -50,6 +50,8 @@ cvar_t *s_alAvailableInputDevices;
|
||||||
cvar_t *s_alEffectsLevel;
|
cvar_t *s_alEffectsLevel;
|
||||||
|
|
||||||
|
|
||||||
|
static enumeration_ext = qfalse;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=================
|
=================
|
||||||
S_AL_Format
|
S_AL_Format
|
||||||
|
@ -2641,7 +2643,7 @@ void S_AL_SoundInfo( void )
|
||||||
Com_Printf( " Renderer: %s\n", qalGetString( AL_RENDERER ) );
|
Com_Printf( " Renderer: %s\n", qalGetString( AL_RENDERER ) );
|
||||||
Com_Printf( " AL Extensions: %s\n", qalGetString( AL_EXTENSIONS ) );
|
Com_Printf( " AL Extensions: %s\n", qalGetString( AL_EXTENSIONS ) );
|
||||||
Com_Printf( " ALC Extensions: %s\n", qalcGetString( alDevice, ALC_EXTENSIONS ) );
|
Com_Printf( " ALC Extensions: %s\n", qalcGetString( alDevice, ALC_EXTENSIONS ) );
|
||||||
if(qalcIsExtensionPresent(NULL, "ALC_ENUMERATION_EXT"))
|
if(enumeration_ext)
|
||||||
{
|
{
|
||||||
Com_Printf(" Device: %s\n", qalcGetString(alDevice, ALC_DEVICE_SPECIFIER));
|
Com_Printf(" Device: %s\n", qalcGetString(alDevice, ALC_DEVICE_SPECIFIER));
|
||||||
Com_Printf("Available Devices:\n%s", s_alAvailableDevices->string);
|
Com_Printf("Available Devices:\n%s", s_alAvailableDevices->string);
|
||||||
|
@ -3120,8 +3122,10 @@ qboolean S_AL_Init( soundInterface_t *si )
|
||||||
if(inputdevice && !*inputdevice)
|
if(inputdevice && !*inputdevice)
|
||||||
inputdevice = NULL;
|
inputdevice = NULL;
|
||||||
|
|
||||||
// Device enumeration support (extension is implemented reasonably only on Windows right now).
|
// Device enumeration support
|
||||||
if(qalcIsExtensionPresent(NULL, "ALC_ENUMERATION_EXT"))
|
if(qalcIsExtensionPresent(NULL, "ALC_ENUMERATION_EXT") ||
|
||||||
|
(enumeration_ext = qalcIsExtensionPresent(NULL, "ALC_ENUMERATE_ALL_EXT"))
|
||||||
|
)
|
||||||
{
|
{
|
||||||
char devicenames[1024] = "";
|
char devicenames[1024] = "";
|
||||||
const char *devicelist;
|
const char *devicelist;
|
||||||
|
@ -3129,7 +3133,15 @@ qboolean S_AL_Init( soundInterface_t *si )
|
||||||
int curlen;
|
int curlen;
|
||||||
|
|
||||||
// get all available devices + the default device name.
|
// get all available devices + the default device name.
|
||||||
devicelist = qalcGetString(NULL, ALC_ALL_DEVICES_SPECIFIER);
|
if(enumeration_ext)
|
||||||
|
devicelist = qalcGetString(NULL, ALC_ALL_DEVICES_SPECIFIER);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// We don't have ALC_ENUMERATE_ALL_EXT but normal enumeration.
|
||||||
|
devicelist = qalcGetString(NULL, ALC_DEVICE_SPECIFIER);
|
||||||
|
enumeration_ext = qtrue;
|
||||||
|
}
|
||||||
|
|
||||||
defaultdevice = qalcGetString(NULL, ALC_DEFAULT_DEVICE_SPECIFIER);
|
defaultdevice = qalcGetString(NULL, ALC_DEFAULT_DEVICE_SPECIFIER);
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
Loading…
Reference in a new issue