diff options
author | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-08-19 22:17:04 +0000 |
---|---|---|
committer | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-08-19 22:17:04 +0000 |
commit | 677e741ce6c129f59c7797646aeb18215078e00f (patch) | |
tree | 5387b38cfe99f6b2b8e69d69484c3a2234f059c6 /code | |
parent | 1d1c4e1ef431f1fc8bad2d9516bffa4d92b38d06 (diff) | |
download | ioquake3-aero-677e741ce6c129f59c7797646aeb18215078e00f.tar.gz ioquake3-aero-677e741ce6c129f59c7797646aeb18215078e00f.zip |
- Change available device list to be displayed on sound initialization and
use line feeds as separators.
git-svn-id: svn://svn.icculus.org/quake3/trunk@856 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r-- | code/client/snd_openal.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/code/client/snd_openal.c b/code/client/snd_openal.c index 6d644e1..4cdaa7f 100644 --- a/code/client/snd_openal.c +++ b/code/client/snd_openal.c @@ -1675,10 +1675,12 @@ void S_AL_SoundInfo( void ) 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 @@ qboolean S_AL_Init( soundInterface_t *si ) 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 @@ qboolean S_AL_Init( soundInterface_t *si ) // 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)) |