|
@@ -55,9 +55,9 @@ ALDeviceList::ALDeviceList( const OPENALFNTABLE &oalft )
|
|
defaultDeviceIndex = 0;
|
|
defaultDeviceIndex = 0;
|
|
|
|
|
|
// grab function pointers for 1.0-API functions, and if successful proceed to enumerate all devices
|
|
// grab function pointers for 1.0-API functions, and if successful proceed to enumerate all devices
|
|
- if (ALFunction.alcIsExtensionPresent(NULL, "ALC_ENUMERATION_EXT")) {
|
|
|
|
|
|
+ if (ALFunction.alcIsExtensionPresent(NULL, "ALC_ENUMERATE_ALL_EXT")) {
|
|
devices = (char *)ALFunction.alcGetString(NULL, ALC_ALL_DEVICES_SPECIFIER);
|
|
devices = (char *)ALFunction.alcGetString(NULL, ALC_ALL_DEVICES_SPECIFIER);
|
|
- defaultDeviceName = (char *)ALFunction.alcGetString(NULL, ALC_DEFAULT_DEVICE_SPECIFIER);
|
|
|
|
|
|
+ defaultDeviceName = (char *)ALFunction.alcGetString(NULL, ALC_DEFAULT_ALL_DEVICES_SPECIFIER);
|
|
index = 0;
|
|
index = 0;
|
|
// go through device list (each device terminated with a single NULL, list terminated with double NULL)
|
|
// go through device list (each device terminated with a single NULL, list terminated with double NULL)
|
|
while (*devices != 0) {
|
|
while (*devices != 0) {
|