diff options
Diffstat (limited to 'src/audio')
-rw-r--r-- | src/audio/AudioLogic.cpp | 8 | ||||
-rw-r--r-- | src/audio/AudioManager.cpp | 4 |
2 files changed, 12 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; diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp index dcacae50..445601b0 100644 --- a/src/audio/AudioManager.cpp +++ b/src/audio/AudioManager.cpp @@ -15,7 +15,11 @@ cAudioManager AudioManager; #define SPEED_OF_SOUND 343.f +#ifdef GTA_PS2 +#define TIME_SPENT 40 +#else #define TIME_SPENT 50 +#endif cAudioManager::cAudioManager() { |