1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-14 17:23:03 +01:00

Use ALC_ENUMERATE_ALL_EXT when available

This commit is contained in:
Keegan Drake H.P 2016-09-14 05:43:10 -05:00
parent cb21672600
commit 379ad9e116

View File

@ -113,7 +113,11 @@ DeviceError init_devices()
}
size[output] = 0;
if ( (stringed_device_list = alcGetString(NULL, ALC_DEVICE_SPECIFIER)) ) {
if (alcIsExtensionPresent(NULL, "ALC_ENUMERATE_ALL_EXT") != AL_FALSE)
stringed_device_list = alcGetString(NULL, ALC_ALL_DEVICES_SPECIFIER);
else
stringed_device_list = alcGetString(NULL, ALC_DEVICE_SPECIFIER);
if (stringed_device_list) {
ddevice_names[output] = alcGetString(NULL, ALC_DEFAULT_DEVICE_SPECIFIER);
for ( ; *stringed_device_list && size[output] < MAX_DEVICES; ++size[output] ) {