mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-17 11:24:08 +00:00
oal upd
This commit is contained in:
parent
1180cc2947
commit
8aac6060d3
22 changed files with 2850 additions and 2125 deletions
|
@ -5,6 +5,7 @@
|
|||
#include "AudioManager.h"
|
||||
#include "AudioScriptObject.h"
|
||||
#include "sampman.h"
|
||||
#include "Text.h"
|
||||
|
||||
cDMAudio DMAudio;
|
||||
|
||||
|
@ -104,6 +105,28 @@ cDMAudio::Get3DProviderName(uint8 id)
|
|||
return AudioManager.Get3DProviderName(id);
|
||||
}
|
||||
|
||||
int8 cDMAudio::AutoDetect3DProviders(void)
|
||||
{
|
||||
for ( int32 i = 0; i < GetNum3DProvidersAvailable(); i++ )
|
||||
{
|
||||
wchar buff[64];
|
||||
|
||||
char *name = Get3DProviderName(i);
|
||||
AsciiToUnicode(name, buff);
|
||||
char *providername = UnicodeToAscii(buff);
|
||||
strupr(providername);
|
||||
#if defined(AUDIO_MSS)
|
||||
if ( !strcmp(providername, "MILES FAST 2D POSITIONAL AUDIO") )
|
||||
return i;
|
||||
#elif defined(AUDIO_OAL)
|
||||
if ( !strcmp(providername, "OPEANAL SOFT") )
|
||||
return i;
|
||||
#endif
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
int8
|
||||
cDMAudio::GetCurrent3DProviderIndex(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue