diff --git a/apps/openmw/mwsound/openal_output.cpp b/apps/openmw/mwsound/openal_output.cpp index 456ee534c..b9a32d57c 100644 --- a/apps/openmw/mwsound/openal_output.cpp +++ b/apps/openmw/mwsound/openal_output.cpp @@ -363,7 +363,10 @@ std::vector OpenAL_Output::enumerate() std::vector devlist; const ALCchar *devnames; - devnames = alcGetString(NULL, ALC_DEVICE_SPECIFIER); + if(alcIsExtensionPresent(NULL, "ALC_ENUMERATE_ALL_EXT")) + devnames = alcGetString(NULL, ALC_ALL_DEVICES_SPECIFIER); + else + devnames = alcGetString(NULL, ALC_DEVICE_SPECIFIER); while(devnames && *devnames) { devlist.push_back(devnames); @@ -380,7 +383,10 @@ void OpenAL_Output::init(const std::string &devname) mDevice = alcOpenDevice(devname.c_str()); if(!mDevice) fail("Failed to open \""+devname+"\""); - std::cout << "Opened \""<