r856 - trunk/code/client
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Aug 19 18:17:04 EDT 2006
Author: thilo
Date: 2006-08-19 18:17:04 -0400 (Sat, 19 Aug 2006)
New Revision: 856
Modified:
trunk/code/client/snd_openal.c
Log:
- Change available device list to be displayed on sound initialization and
use line feeds as separators.
Modified: trunk/code/client/snd_openal.c
===================================================================
--- trunk/code/client/snd_openal.c 2006-08-19 14:40:24 UTC (rev 855)
+++ trunk/code/client/snd_openal.c 2006-08-19 22:17:04 UTC (rev 856)
@@ -1675,10 +1675,12 @@
Com_Printf( " Vendor: %s\n", qalGetString( AL_VENDOR ) );
Com_Printf( " Version: %s\n", qalGetString( AL_VERSION ) );
Com_Printf( " Renderer: %s\n", qalGetString( AL_RENDERER ) );
- if(qalcIsExtensionPresent(NULL, "ALC_ENUMERATION_EXT"))
- Com_Printf( " Device: %s\n", qalcGetString(alDevice, ALC_DEVICE_SPECIFIER) );
Com_Printf( " Extensions: %s\n", qalGetString( AL_EXTENSIONS ) );
-
+ if(qalcIsExtensionPresent(NULL, "ALC_ENUMERATION_EXT"))
+ {
+ Com_Printf(" Device: %s\n", qalcGetString(alDevice, ALC_DEVICE_SPECIFIER));
+ Com_Printf("Available Devices:\n%s", s_alAvailableDevices->string);
+ }
}
/*
@@ -1751,7 +1753,6 @@
const ALCchar *devicelist;
const ALCchar *defaultdevice;
int curlen;
- qboolean hasbegun = qfalse;
// get all available devices + the default device name.
devicelist = qalcGetString(NULL, ALC_DEVICE_SPECIFIER);
@@ -1771,11 +1772,8 @@
// dump a list of available devices to a cvar for the user to see.
while((curlen = strlen(devicelist)))
{
- if(hasbegun)
- Q_strcat(devicenames, sizeof(devicenames), ", ");
-
Q_strcat(devicenames, sizeof(devicenames), devicelist);
- hasbegun = qtrue;
+ Q_strcat(devicenames, sizeof(devicenames), "\n");
// check whether the device we want to load is available at all.
if(!strcmp(s_alDevice->string, devicelist))
More information about the quake3-commits
mailing list