diff options
author | Chris Robinson <[email protected]> | 2011-08-20 04:16:22 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-08-20 04:16:22 -0700 |
commit | 5290c820b44ebbdba37cb4256e2669b60753e376 (patch) | |
tree | 6bfbcbcd8a46cecc83cab7d09f9cd91a95bc6fb5 /utils | |
parent | 22ad15e1f1eb89c260319376d2ef20034b54b154 (diff) |
Print the ALC_DEFAULT_ALL_DEVICES_SPECIFIER when available
Diffstat (limited to 'utils')
-rw-r--r-- | utils/openal-info.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/openal-info.c b/utils/openal-info.c index 247e6a5a..55be203d 100644 --- a/utils/openal-info.c +++ b/utils/openal-info.c @@ -323,8 +323,12 @@ int main(int argc, char *argv[]) printf("Available capture devices:\n"); printDeviceList(alcGetString(NULL, ALC_CAPTURE_DEVICE_SPECIFIER)); - printf("Default playback device: %s\n", - alcGetString(NULL, ALC_DEFAULT_DEVICE_SPECIFIER)); + if(alcIsExtensionPresent(NULL, "ALC_ENUMERATE_ALL_EXT") != AL_FALSE) + printf("Default playback device: %s\n", + alcGetString(NULL, ALC_DEFAULT_ALL_DEVICES_SPECIFIER)); + else + printf("Default playback device: %s\n", + alcGetString(NULL, ALC_DEFAULT_DEVICE_SPECIFIER)); printf("Default capture device: %s\n", alcGetString(NULL, ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER)); |