diff options
author | Roman Masanin <36927roma@gmail.com> | 2020-11-08 19:30:03 +0100 |
---|---|---|
committer | Roman Masanin <36927roma@gmail.com> | 2020-11-08 19:30:03 +0100 |
commit | 612bd98039fe1516951994721298e05f34fb13b5 (patch) | |
tree | 10b03435947d05d3c5c914338d2649dc4b4dced1 /src/audio/AudioLogic.cpp | |
parent | pointers to referencies too (diff) | |
download | re3-612bd98039fe1516951994721298e05f34fb13b5.tar re3-612bd98039fe1516951994721298e05f34fb13b5.tar.gz re3-612bd98039fe1516951994721298e05f34fb13b5.tar.bz2 re3-612bd98039fe1516951994721298e05f34fb13b5.tar.lz re3-612bd98039fe1516951994721298e05f34fb13b5.tar.xz re3-612bd98039fe1516951994721298e05f34fb13b5.tar.zst re3-612bd98039fe1516951994721298e05f34fb13b5.zip |
Diffstat (limited to 'src/audio/AudioLogic.cpp')
-rw-r--r-- | src/audio/AudioLogic.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp index 95e6094f..a27d3351 100644 --- a/src/audio/AudioLogic.cpp +++ b/src/audio/AudioLogic.cpp @@ -1943,7 +1943,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; m_sQueueSample.m_nFrequency = SampleManager.GetSampleBaseFrequency(m_sQueueSample.m_nSampleIndex); m_sQueueSample.m_nFrequency += RandomDisplacement(m_sQueueSample.m_nFrequency / 32); m_sQueueSample.m_nReleasingVolumeModificator = 3; @@ -1977,7 +1977,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; m_sQueueSample.m_nFrequency = SampleManager.GetSampleBaseFrequency(m_sQueueSample.m_nSampleIndex); m_sQueueSample.m_nFrequency += RandomDisplacement(m_sQueueSample.m_nFrequency / 32); m_sQueueSample.m_nReleasingVolumeModificator = 3; |