aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/openal-info.c8
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));