support ALC_ENUMERATION_EXT only

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2186 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-07-21 17:44:00 +00:00
parent 30f262856a
commit eeb922fc5e
+4 -8
View File
@@ -104,7 +104,7 @@ struct source
{
alclearerr();
alGenSources(1, &id);
ASSERT(id<1000);
//ASSERT(id<1000);
alSourcef(id, AL_REFERENCE_DISTANCE, 1.0f);
return !alerr(false);
}
@@ -984,14 +984,10 @@ void initsound()
alclearerr();
// list available devices
int enumtype = 0;
if(alcIsExtensionPresent(NULL, "ALC_ENUMERATE_ALL_EXT")) enumtype = ALC_ALL_DEVICES_SPECIFIER; // advanced info
else if(alcIsExtensionPresent(NULL, "ALC_ENUMERATION_EXT")) enumtype = ALC_DEVICE_SPECIFIER;
if(enumtype)
// list available devices
if(alcIsExtensionPresent(NULL, "ALC_ENUMERATION_EXT"))
{
const ALCchar *devices = alcGetString(NULL, enumtype);
const ALCchar *devices = alcGetString(NULL, ALC_DEVICE_SPECIFIER);
if(devices)
{
string d;