diff options
author | Chris Robinson <[email protected]> | 2012-03-01 06:59:51 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-03-01 06:59:51 -0800 |
commit | db4d62d17c71394e9b3bbb8e042820bf250a87dc (patch) | |
tree | aff9fc6aacc7ab367f6296aa5e178ded99f924b3 /utils/openal-info.c | |
parent | 8d24bd720ff5007171a252ca8a2cc363ad49de92 (diff) |
Print out a more descriptive name for the opened device in openal-info
Diffstat (limited to 'utils/openal-info.c')
-rw-r--r-- | utils/openal-info.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/openal-info.c b/utils/openal-info.c index eab068ac..f291e1cd 100644 --- a/utils/openal-info.c +++ b/utils/openal-info.c @@ -277,7 +277,10 @@ int main(int argc, char *argv[]) return 1; } - printf("\n** Info for device \"%s\" **\n", alcGetString(device, ALC_DEVICE_SPECIFIER)); + if(alcIsExtensionPresent(device, "ALC_ENUMERATE_ALL_EXT") != AL_FALSE) + printf("\n** Info for device \"%s\" **\n", alcGetString(device, ALC_ALL_DEVICES_SPECIFIER)); + else + printf("\n** Info for device \"%s\" **\n", alcGetString(device, ALC_DEVICE_SPECIFIER)); printALCInfo(device); context = alcCreateContext(device, NULL); |