summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilip Gawin <filip.gawin@zoho.com>2019-07-21 12:39:22 +0200
committerFilip Gawin <filip.gawin@zoho.com>2019-07-21 21:17:00 +0200
commitb00a92b20a9cd9dbe40ac561c6abddca523ee52e (patch)
treebc6f72a16f4155dd2047375847bbb599531cd210
parentFix setting sampleIndex (diff)
downloadre3-b00a92b20a9cd9dbe40ac561c6abddca523ee52e.tar
re3-b00a92b20a9cd9dbe40ac561c6abddca523ee52e.tar.gz
re3-b00a92b20a9cd9dbe40ac561c6abddca523ee52e.tar.bz2
re3-b00a92b20a9cd9dbe40ac561c6abddca523ee52e.tar.lz
re3-b00a92b20a9cd9dbe40ac561c6abddca523ee52e.tar.xz
re3-b00a92b20a9cd9dbe40ac561c6abddca523ee52e.tar.zst
re3-b00a92b20a9cd9dbe40ac561c6abddca523ee52e.zip
Diffstat (limited to '')
-rw-r--r--src/audio/AudioManager.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index 0b1198ab..c0479002 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -172,9 +172,7 @@ cAudioManager::AddReflectionsToRequestedQueue()
reflectionDistance = m_afReflectionsDistances[i];
if(reflectionDistance > 0.0f && reflectionDistance < 100.f &&
reflectionDistance < m_sQueueSample.m_fSoundIntensity) {
- m_sQueueSample.m_bLoopsRemaining =
- (reflectionDistance *
- 0.38873f); // @todo assert value, here used from VC
+ m_sQueueSample.m_bLoopsRemaining = (reflectionDistance * 500.f / 1029.f);
if(m_sQueueSample.m_bLoopsRemaining > 5u) {
m_sQueueSample.m_fDistance = m_afReflectionsDistances[i];
m_sQueueSample.m_bEmittingVolume = emittingVolume;