mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 15:03:03 +01:00
Use ALC_ENUMERATE_ALL_EXT when available
This commit is contained in:
parent
cb21672600
commit
379ad9e116
@ -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] ) {
|
||||
|
Loading…
Reference in New Issue
Block a user