mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-01-23 01:50:41 +00:00
IOQ3 commit 1932
This commit is contained in:
parent
0ada47a900
commit
9957d68ba5
1 changed files with 21 additions and 11 deletions
|
@ -51,6 +51,8 @@ cvar_t *s_alEffectsLevel;
|
|||
|
||||
|
||||
static qboolean enumeration_ext = qfalse;
|
||||
static qboolean enumeration_all_ext = qfalse;
|
||||
static qboolean capture_ext = qfalse;
|
||||
|
||||
/*
|
||||
=================
|
||||
|
@ -2634,8 +2636,7 @@ void S_AL_MasterGain( float gain )
|
|||
S_AL_SoundInfo
|
||||
=================
|
||||
*/
|
||||
static
|
||||
void S_AL_SoundInfo( void )
|
||||
static void S_AL_SoundInfo(void)
|
||||
{
|
||||
Com_Printf( "OpenAL info:\n" );
|
||||
Com_Printf( " Vendor: %s\n", qalGetString( AL_VENDOR ) );
|
||||
|
@ -2643,15 +2644,21 @@ void S_AL_SoundInfo( void )
|
|||
Com_Printf( " Renderer: %s\n", qalGetString( AL_RENDERER ) );
|
||||
Com_Printf( " AL Extensions: %s\n", qalGetString( AL_EXTENSIONS ) );
|
||||
Com_Printf( " ALC Extensions: %s\n", qalcGetString( alDevice, ALC_EXTENSIONS ) );
|
||||
if(enumeration_ext)
|
||||
{
|
||||
if(enumeration_all_ext)
|
||||
Com_Printf(" Device: %s\n", qalcGetString(alDevice, ALC_ALL_DEVICES_SPECIFIER));
|
||||
else if(enumeration_ext)
|
||||
Com_Printf(" Device: %s\n", qalcGetString(alDevice, ALC_DEVICE_SPECIFIER));
|
||||
|
||||
if(enumeration_all_ext || enumeration_ext)
|
||||
Com_Printf("Available Devices:\n%s", s_alAvailableDevices->string);
|
||||
|
||||
#ifdef USE_VOIP
|
||||
Com_Printf("Input Device: %s\n", qalcGetString(alCaptureDevice, ALC_DEVICE_SPECIFIER));
|
||||
if(capture_ext)
|
||||
{
|
||||
Com_Printf(" Input Device: %s\n", qalcGetString(alCaptureDevice, ALC_CAPTURE_DEVICE_SPECIFIER));
|
||||
Com_Printf("Available Input Devices:\n%s", s_alAvailableInputDevices->string);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -3123,9 +3130,10 @@ qboolean S_AL_Init( soundInterface_t *si )
|
|||
inputdevice = NULL;
|
||||
|
||||
// Device enumeration support
|
||||
if((enumeration_ext = qalcIsExtensionPresent(NULL, "ALC_ENUMERATE_ALL_EXT")) ||
|
||||
qalcIsExtensionPresent(NULL, "ALC_ENUMERATION_EXT")
|
||||
)
|
||||
enumeration_all_ext = qalcIsExtensionPresent(NULL, "ALC_ENUMERATE_ALL_EXT");
|
||||
enumeration_ext = qalcIsExtensionPresent(NULL, "ALC_ENUMERATION_EXT");
|
||||
|
||||
if(enumeration_ext || enumeration_all_ext)
|
||||
{
|
||||
char devicenames[16384] = "";
|
||||
const char *devicelist;
|
||||
|
@ -3243,6 +3251,8 @@ qboolean S_AL_Init( soundInterface_t *si )
|
|||
const char *defaultinputdevice;
|
||||
int curlen;
|
||||
|
||||
capture_ext = qtrue;
|
||||
|
||||
// get all available input devices + the default input device name.
|
||||
inputdevicelist = qalcGetString(NULL, ALC_CAPTURE_DEVICE_SPECIFIER);
|
||||
defaultinputdevice = qalcGetString(NULL, ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER);
|
||||
|
|
Loading…
Reference in a new issue