diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-06-08 13:29:55 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-06-08 13:29:55 +0200 |
commit | 8cd87236c98bc42cd98f80fc488460881cae2880 (patch) | |
tree | f8b7b5f9294f624b2947bb6e31546fa0fc9f699f /src/audio/AudioLogic.cpp | |
parent | Merge branch 'miami' into VC/MissionAudio (diff) | |
download | re3-8cd87236c98bc42cd98f80fc488460881cae2880.tar re3-8cd87236c98bc42cd98f80fc488460881cae2880.tar.gz re3-8cd87236c98bc42cd98f80fc488460881cae2880.tar.bz2 re3-8cd87236c98bc42cd98f80fc488460881cae2880.tar.lz re3-8cd87236c98bc42cd98f80fc488460881cae2880.tar.xz re3-8cd87236c98bc42cd98f80fc488460881cae2880.tar.zst re3-8cd87236c98bc42cd98f80fc488460881cae2880.zip |
Diffstat (limited to 'src/audio/AudioLogic.cpp')
-rw-r--r-- | src/audio/AudioLogic.cpp | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp index ed27bdd3..a7d16dc4 100644 --- a/src/audio/AudioLogic.cpp +++ b/src/audio/AudioLogic.cpp @@ -149,10 +149,19 @@ cAudioManager::PostInitialiseGameSpecificSetup() m_nPoliceChannelEntity = CreateEntity(AUDIOTYPE_POLICERADIO, (void *)1); if (m_nPoliceChannelEntity >= 0) SetEntityStatus(m_nPoliceChannelEntity, 1); - - m_nBridgeEntity = CreateEntity(AUDIOTYPE_BRIDGE, (void *)1); +#ifdef GTA_BRIDGE + m_nBridgeEntity = CreateEntity(AUDIOTYPE_BRIDGE, (void*)1); if (m_nBridgeEntity >= 0) SetEntityStatus(m_nBridgeEntity, 1); +#endif // GTA_BRIDGE + m_nEscalatorEntity = CreateEntity(AUDIOTYPE_ESCALATOR, (void*)1); + if (m_nEscalatorEntity >= 0) + SetEntityStatus(m_nEscalatorEntity, 1); + + m_nExtraSoundsEntity = CreateEntity(AUDIOTYPE_EXTRA_SOUNDS, (void*)1); + if (m_nExtraSoundsEntity >= 0) + SetEntityStatus(m_nExtraSoundsEntity, 1); + m_sMissionAudio.m_nSampleIndex[0] = NO_SAMPLE; m_sMissionAudio.m_nLoadingStatus[0] = LOADING_STATUS_NOT_LOADED; @@ -178,10 +187,20 @@ cAudioManager::PostInitialiseGameSpecificSetup() void cAudioManager::PreTerminateGameSpecificShutdown() { +#ifdef GTA_BRIDGE if (m_nBridgeEntity >= 0) { DestroyEntity(m_nBridgeEntity); m_nBridgeEntity = AEHANDLE_NONE; } +#endif + if (m_nEscalatorEntity >= 0) { + DestroyEntity(m_nEscalatorEntity); + m_nEscalatorEntity = AEHANDLE_NONE; + } + if (m_nExtraSoundsEntity >= 0) { + DestroyEntity(m_nExtraSoundsEntity); + m_nExtraSoundsEntity = AEHANDLE_NONE; + } if (m_nPoliceChannelEntity >= 0) { DestroyEntity(m_nPoliceChannelEntity); m_nPoliceChannelEntity = AEHANDLE_NONE; |