summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authorRoman Masanin <36927roma@gmail.com>2020-09-26 20:07:51 +0200
committerRoman Masanin <36927roma@gmail.com>2020-09-26 20:07:51 +0200
commit4c220b1f9583e2db3cdbb99fcdecd82ae4fe9e0d (patch)
treec6971ac78cab232fa6665dee01f8c014890d0114 /src/audio
parentmark completed functions in audioManager.h (diff)
downloadre3-4c220b1f9583e2db3cdbb99fcdecd82ae4fe9e0d.tar
re3-4c220b1f9583e2db3cdbb99fcdecd82ae4fe9e0d.tar.gz
re3-4c220b1f9583e2db3cdbb99fcdecd82ae4fe9e0d.tar.bz2
re3-4c220b1f9583e2db3cdbb99fcdecd82ae4fe9e0d.tar.lz
re3-4c220b1f9583e2db3cdbb99fcdecd82ae4fe9e0d.tar.xz
re3-4c220b1f9583e2db3cdbb99fcdecd82ae4fe9e0d.tar.zst
re3-4c220b1f9583e2db3cdbb99fcdecd82ae4fe9e0d.zip
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/AudioLogic.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index b04030dc..60989aba 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -366,12 +366,26 @@ cAudioManager::ProcessEntity(int32 id)
ProcessWeather(id);
}
break;
+/* case AUDIOTYPE_CRANE:
+ if (!m_nUserPause) {
+ m_sQueueSample.m_bReverbFlag = true;
+ ProcessCrane();
+ }
+ break;*/
case AUDIOTYPE_SCRIPTOBJECT:
if (!m_nUserPause) {
m_sQueueSample.m_bReverbFlag = true;
ProcessScriptObject(id);
}
break;
+#ifdef GTA_BRIDGE
+ case AUDIOTYPE_BRIDGE:
+ if (!m_nUserPause) {
+ m_sQueueSample.m_bReverbFlag = true;
+ ProcessBridge();
+ }
+ break;
+#endif
case AUDIOTYPE_FRONTEND:
m_sQueueSample.m_bReverbFlag = false;
ProcessFrontEnd();
@@ -4973,9 +4987,9 @@ cAudioManager::ProcessEscalators()
float distance;
for (int i = 0; i < CEscalators::NumEscalators; i++) {
- if (!CEscalators::aEscalators[i].m_bIsActive)
+ if (!CEscalators::GetEscalator(i).IsActive())
continue;
- m_sQueueSample.m_vecPos = CEscalators::aEscalators[i].m_midPoint;
+ m_sQueueSample.m_vecPos = CEscalators::GetEscalator(i).GetPosition();
distance = GetDistanceSquared(m_sQueueSample.m_vecPos);
if (distance < SQR(SOUND_INTENSITY)) {
if (distance > 0.0f)