This commit is contained in:
Filip Gawin 2019-07-19 23:35:21 +02:00
parent 40b3ff31bb
commit e003f7ffba
4 changed files with 5 additions and 5 deletions

View File

@ -794,10 +794,10 @@ cAudioManager::MissionScriptAudioUsesPoliceChannel(int32 soundMission)
}
}
uint8
char *
cAudioManager::Get3DProviderName(uint8 id)
{
if(m_bIsInitialised) return 0;
if(!m_bIsInitialised) return 0;
if(id >= num3DProvidersAvailable) return 0;
return asName3DProviders[id];
}

View File

@ -292,7 +292,7 @@ public:
bool MissionScriptAudioUsesPoliceChannel(int32 soundMission);
uint8 Get3DProviderName(uint8 id);
char* Get3DProviderName(uint8 id);
bool SetupJumboFlySound(uint8 emittingVol); /// ok
bool SetupJumboRumbleSound(uint8 emittingVol); /// ok

View File

@ -6,7 +6,7 @@ CSampleManager &cSampleManager = *(CSampleManager *)0x7341E0;
uint32 &nNumOfMp3Files = *(uint32 *)0x95CC00;
uint8 &num3DProvidersAvailable = *(uint8 *)0x734237;
uint32 *asName3DProviders = (uint32 *)0x734238;
char **asName3DProviders = (char **)0x734238;
bool
CSampleManager::IsMP3RadioChannelAvailable()

View File

@ -63,6 +63,6 @@ public:
extern uint32 &nNumOfMp3Files;
extern uint8 &num3DProvidersAvailable;
extern uint32 *asName3DProviders;
extern char **asName3DProviders;
extern CSampleManager &cSampleManager;