diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-05-22 12:34:13 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-06-24 20:32:43 +0200 |
commit | c37f4c3c1aab1ae9e531294c89b95f1cd571ebd8 (patch) | |
tree | 6726bfb75d10d4e9ebcd69603756c344ab306f4d | |
parent | Fix return type (diff) | |
download | re3-c37f4c3c1aab1ae9e531294c89b95f1cd571ebd8.tar re3-c37f4c3c1aab1ae9e531294c89b95f1cd571ebd8.tar.gz re3-c37f4c3c1aab1ae9e531294c89b95f1cd571ebd8.tar.bz2 re3-c37f4c3c1aab1ae9e531294c89b95f1cd571ebd8.tar.lz re3-c37f4c3c1aab1ae9e531294c89b95f1cd571ebd8.tar.xz re3-c37f4c3c1aab1ae9e531294c89b95f1cd571ebd8.tar.zst re3-c37f4c3c1aab1ae9e531294c89b95f1cd571ebd8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/audio/AudioLogic.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp index 2f173d5e..75d7d6a3 100644 --- a/src/audio/AudioLogic.cpp +++ b/src/audio/AudioLogic.cpp @@ -2879,21 +2879,22 @@ cAudioManager::SetupJumboFlySound(uint8 emittingVol) int32 vol = ComputeVolume(emittingVol, SOUND_INTENSITY, m_sQueueSample.m_fDistance); m_sQueueSample.m_nVolume = vol; if (m_sQueueSample.m_nVolume != 0) { - m_sQueueSample.m_nSampleIndex = SFX_JUMBO_DIST_FLY; m_sQueueSample.m_nCounter = 0; + m_sQueueSample.m_nSampleIndex = SFX_JUMBO_DIST_FLY; m_sQueueSample.m_nBankIndex = SFX_BANK_0; m_sQueueSample.m_bIs2D = FALSE; m_sQueueSample.m_nReleasingVolumeModificator = 1; - m_sQueueSample.m_nEmittingVolume = emittingVol; - m_sQueueSample.m_nLoopCount = 0; m_sQueueSample.m_nFrequency = SampleManager.GetSampleBaseFrequency(SFX_JUMBO_DIST_FLY); + 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); + m_sQueueSample.m_fSpeedMultiplier = 4.0f; m_sQueueSample.m_fSoundIntensity = SOUND_INTENSITY; m_sQueueSample.m_bReleasingSoundFlag = FALSE; - m_sQueueSample.m_fSpeedMultiplier = 4.0f; - m_sQueueSample.m_bReverbFlag = TRUE; m_sQueueSample.m_nReleasingVolumeDivider = 5; - m_sQueueSample.m_nLoopEnd = SampleManager.GetSampleLoopEndOffset(m_sQueueSample.m_nSampleIndex); + m_sQueueSample.m_bReverbFlag = TRUE; + m_sQueueSample.m_bRequireReflection = FALSE; AddSampleToRequestedQueue(); } return TRUE; |