diff options
author | Roman Masanin <36927roma@gmail.com> | 2020-11-08 19:23:29 +0100 |
---|---|---|
committer | Roman Masanin <36927roma@gmail.com> | 2020-11-08 19:23:29 +0100 |
commit | 0853a47a3f521684a4c9c9890b65fc638e41cb07 (patch) | |
tree | 2236c722fb69a1e59b0c0c23975b8d2075a6acb7 /src/audio | |
parent | pointers into referencies! (diff) | |
download | re3-0853a47a3f521684a4c9c9890b65fc638e41cb07.tar re3-0853a47a3f521684a4c9c9890b65fc638e41cb07.tar.gz re3-0853a47a3f521684a4c9c9890b65fc638e41cb07.tar.bz2 re3-0853a47a3f521684a4c9c9890b65fc638e41cb07.tar.lz re3-0853a47a3f521684a4c9c9890b65fc638e41cb07.tar.xz re3-0853a47a3f521684a4c9c9890b65fc638e41cb07.tar.zst re3-0853a47a3f521684a4c9c9890b65fc638e41cb07.zip |
Diffstat (limited to '')
-rw-r--r-- | src/audio/AudioLogic.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp index 6270e6d8..72ca6655 100644 --- a/src/audio/AudioLogic.cpp +++ b/src/audio/AudioLogic.cpp @@ -2650,7 +2650,7 @@ cAudioManager::ProcessVehicleOneShots(cVehicleParams& params) break; } m_sQueueSample.m_nBankIndex = SFX_BANK_0; - m_sQueueSample.m_nCounter = event + 22; //originaly used m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_awAudioEvent[i], which is same + m_sQueueSample.m_nCounter = m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_awAudioEvent[i] + 22; if (params.m_pVehicle->GetVehicleAppearance() == VEHICLE_APPEARANCE_HELI) m_sQueueSample.m_nFrequency = 28062; else @@ -2686,7 +2686,7 @@ cAudioManager::ProcessVehicleOneShots(cVehicleParams& params) break; } m_sQueueSample.m_nBankIndex = SFX_BANK_0; - m_sQueueSample.m_nCounter = event + 10; //also used m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_awAudioEvent[i] + m_sQueueSample.m_nCounter = m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_awAudioEvent[i] + 10; if (params.m_pVehicle->GetVehicleAppearance() == VEHICLE_APPEARANCE_HELI) m_sQueueSample.m_nFrequency = 23459; else @@ -2715,7 +2715,7 @@ cAudioManager::ProcessVehicleOneShots(cVehicleParams& params) const float SOUND_INTENSITY = 35.0f; static uint8 WheelIndex = 82; maxDist = SQR(SOUND_INTENSITY); - if (event == SOUND_CAR_JUMP_2) { //also used m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_awAudioEvent[i] + if (m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_awAudioEvent[i] == SOUND_CAR_JUMP_2) { m_sQueueSample.m_nSampleIndex = SFX_TYRE_BURST_B; emittingVol = Max(50.0f, 2 * (60.0f * m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_afVolume[i])); } else { |