Fixes and style changes from miami

This commit is contained in:
erorcun
2020-10-18 19:16:37 +03:00
parent 4c305fd48b
commit a6aa782d6d
18 changed files with 861 additions and 248 deletions

View File

@@ -118,7 +118,12 @@ int8 cDMAudio::AutoDetect3DProviders(void)
for ( int32 i = 0; i < GetNum3DProvidersAvailable(); i++ )
{
wchar buff[64];
#ifdef AUDIO_OAL
if (defaultProvider >= 0 && defaultProvider < GetNum3DProvidersAvailable()) {
return i;
}
#endif
char *name = Get3DProviderName(i);
AsciiToUnicode(name, buff);
char *providername = UnicodeToAscii(buff);