OpenAL Internal name

-Now there is an internal name for openal and a default name for the device to be displayed
This commit is contained in:
marauder2k7 2022-08-16 15:55:56 +01:00
parent 52dc5cf3da
commit 3eca15cb31
6 changed files with 33 additions and 14 deletions

View file

@ -1265,15 +1265,7 @@ DefineEngineFunction( sfxGetAvailableDevices, const char*, (),,
const SFXDeviceInfo* info = deviceInfo[d];
const char *providerName = provider->getName().c_str();
char *infoName = (char*)info->name.c_str();
char* openFind = dStrchr(&infoName[0], '(');
if (openFind)
{
infoName = openFind + 1;
char* closeFind = dStrchr(infoName, ')');
if (closeFind)
(*closeFind) = '\0';
}
dSprintf(ptr, len, "%s\t%s\t%s\t%i\n", providerName, infoName, info->hasHardware ? "1" : "0", info->maxBuffers);
ptr += dStrlen(ptr);