diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-06-12 18:59:28 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-06-24 20:34:33 +0200 |
commit | 1b5dbc4b411d58c04d867a4f330f06ca3e4ef1cf (patch) | |
tree | d4d2ac80a0f2d8eee7cf1b008f14d269d26b688d /src/audio/AudioCollision.cpp | |
parent | Fix cAudioManager::ProcessCarHeli (diff) | |
download | re3-1b5dbc4b411d58c04d867a4f330f06ca3e4ef1cf.tar re3-1b5dbc4b411d58c04d867a4f330f06ca3e4ef1cf.tar.gz re3-1b5dbc4b411d58c04d867a4f330f06ca3e4ef1cf.tar.bz2 re3-1b5dbc4b411d58c04d867a4f330f06ca3e4ef1cf.tar.lz re3-1b5dbc4b411d58c04d867a4f330f06ca3e4ef1cf.tar.xz re3-1b5dbc4b411d58c04d867a4f330f06ca3e4ef1cf.tar.zst re3-1b5dbc4b411d58c04d867a4f330f06ca3e4ef1cf.zip |
Diffstat (limited to '')
-rw-r--r-- | src/audio/AudioCollision.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/audio/AudioCollision.cpp b/src/audio/AudioCollision.cpp index be1ee48b..decb73e5 100644 --- a/src/audio/AudioCollision.cpp +++ b/src/audio/AudioCollision.cpp @@ -172,10 +172,7 @@ cAudioManager::SetUpLoopingCollisionSound(const cAudioCollision &col, uint8 coun m_sQueueSample.m_nReleasingVolumeModificator = 7; m_sQueueSample.m_nLoopCount = 0; m_sQueueSample.m_nEmittingVolume = emittingVol; - m_sQueueSample.m_nLoopStart = - SampleManager.GetSampleLoopStartOffset(m_sQueueSample.m_nSampleIndex); - m_sQueueSample.m_nLoopEnd = - SampleManager.GetSampleLoopEndOffset(m_sQueueSample.m_nSampleIndex); + SET_LOOP_OFFSETS(m_sQueueSample.m_nSampleIndex) m_sQueueSample.m_fSpeedMultiplier = 4.0f; m_sQueueSample.m_fSoundIntensity = CollisionSoundIntensity; m_sQueueSample.m_bReleasingSoundFlag = FALSE; @@ -315,8 +312,7 @@ cAudioManager::SetUpOneShotCollisionSound(const cAudioCollision &col) m_sQueueSample.m_nReleasingVolumeModificator = 11; m_sQueueSample.m_nLoopCount = 1; m_sQueueSample.m_nEmittingVolume = emittingVol; - m_sQueueSample.m_nLoopStart = 0; - m_sQueueSample.m_nLoopEnd = -1; + RESET_LOOP_OFFSETS m_sQueueSample.m_fSpeedMultiplier = 4.0f; m_sQueueSample.m_fSoundIntensity = CollisionSoundIntensity; m_sQueueSample.m_bReleasingSoundFlag = TRUE; |