diff options
author | Roman Masanin <36927roma@gmail.com> | 2020-11-08 21:29:57 +0100 |
---|---|---|
committer | Roman Masanin <36927roma@gmail.com> | 2020-11-08 21:29:57 +0100 |
commit | c91d5a90a1d796ad18f438e7f980fe773762631c (patch) | |
tree | 9dbd00619bf20c964a555a57b9debf3334fb9bdd | |
parent | return bad code, becouse no one knows what to do with it (diff) | |
download | re3-c91d5a90a1d796ad18f438e7f980fe773762631c.tar re3-c91d5a90a1d796ad18f438e7f980fe773762631c.tar.gz re3-c91d5a90a1d796ad18f438e7f980fe773762631c.tar.bz2 re3-c91d5a90a1d796ad18f438e7f980fe773762631c.tar.lz re3-c91d5a90a1d796ad18f438e7f980fe773762631c.tar.xz re3-c91d5a90a1d796ad18f438e7f980fe773762631c.tar.zst re3-c91d5a90a1d796ad18f438e7f980fe773762631c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/audio/AudioLogic.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp index a27d3351..fc828042 100644 --- a/src/audio/AudioLogic.cpp +++ b/src/audio/AudioLogic.cpp @@ -1943,7 +1943,11 @@ cAudioManager::ProcessVehicleOneShots(cVehicleParams& params) break; } m_sQueueSample.m_nBankIndex = SFX_BANK_0; +#ifdef THIS_IS_STUPID m_sQueueSample.m_nCounter = m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_awAudioEvent[i] + 22; +#else + m_sQueueSample.m_nCounter = event + 22; +#endif 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 +1981,11 @@ cAudioManager::ProcessVehicleOneShots(cVehicleParams& params) break; } m_sQueueSample.m_nBankIndex = SFX_BANK_0; +#ifdef THIS_IS_STUPID m_sQueueSample.m_nCounter = m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_awAudioEvent[i] + 10; +#else + m_sQueueSample.m_nCounter = event + 10; +#endif 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; |