1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-23 03:33:25 +01:00

Merge branch 'kdhp-master'

This commit is contained in:
Jfreegman 2016-09-15 11:27:04 -04:00
commit 98154b3cba
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

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] ) {