Print out a more descriptive name for the opened device in openal-info

This commit is contained in:
Chris Robinson 2012-03-01 06:59:51 -08:00
parent 8d24bd720f
commit db4d62d17c

View File

@ -277,6 +277,9 @@ int main(int argc, char *argv[])
return 1; return 1;
} }
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)); printf("\n** Info for device \"%s\" **\n", alcGetString(device, ALC_DEVICE_SPECIFIER));
printALCInfo(device); printALCInfo(device);