summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioLogic.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-09-02 16:52:11 +0200
committerSergeanur <s.anureev@yandex.ua>2021-09-02 16:52:11 +0200
commit3bc6aa85daa136c59f0816d6dfb6a2a8307a6b56 (patch)
treecb24e821cd8bb2b1177e17a0987474d3689d1dd7 /src/audio/AudioLogic.cpp
parentPS2 ProcessReverb (diff)
downloadre3-3bc6aa85daa136c59f0816d6dfb6a2a8307a6b56.tar
re3-3bc6aa85daa136c59f0816d6dfb6a2a8307a6b56.tar.gz
re3-3bc6aa85daa136c59f0816d6dfb6a2a8307a6b56.tar.bz2
re3-3bc6aa85daa136c59f0816d6dfb6a2a8307a6b56.tar.lz
re3-3bc6aa85daa136c59f0816d6dfb6a2a8307a6b56.tar.xz
re3-3bc6aa85daa136c59f0816d6dfb6a2a8307a6b56.tar.zst
re3-3bc6aa85daa136c59f0816d6dfb6a2a8307a6b56.zip
Diffstat (limited to 'src/audio/AudioLogic.cpp')
-rw-r--r--src/audio/AudioLogic.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index cf4ab286..28602304 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -6451,7 +6451,11 @@ cAudioManager::ProcessExplosions(int32 id)
case EXPLOSION_TANK_GRENADE:
m_sQueueSample.m_MaxDistance = EXPLOSION_DEFAULT_MAX_DIST;
m_sQueueSample.m_nSampleIndex = SFX_EXPLOSION_2;
+#ifdef GTA_PS2
+ m_sQueueSample.m_nFrequency = RandomDisplacement(1000) + 19000;
+#else
m_sQueueSample.m_nFrequency = RandomDisplacement(2000) + 38000;
+#endif
m_sQueueSample.m_nPriority = 0;
m_sQueueSample.m_nBankIndex = SFX_BANK_0;
break;
@@ -6473,7 +6477,11 @@ cAudioManager::ProcessExplosions(int32 id)
default:
m_sQueueSample.m_MaxDistance = EXPLOSION_DEFAULT_MAX_DIST;
m_sQueueSample.m_nSampleIndex = SFX_EXPLOSION_1;
+#ifdef GTA_PS2
+ m_sQueueSample.m_nFrequency = RandomDisplacement(1000) + 19000;
+#else
m_sQueueSample.m_nFrequency = RandomDisplacement(2000) + 38000;
+#endif
if (type == EXPLOSION_HELI)
m_sQueueSample.m_nFrequency = 8 * m_sQueueSample.m_nFrequency / 10;
m_sQueueSample.m_nPriority = 0;