mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 07:30:01 +00:00
commit
07c6c7d0a2
|
@ -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;
|
||||
|
@ -287,8 +285,8 @@ cAudioManager::AddSampleToRequestedQueue()
|
|||
calculatedVolume = m_sQueueSample.field_16 * (maxVolume - m_sQueueSample.m_bVolume);
|
||||
sampleIndex = m_bSampleRequestQueuesStatus[m_bActiveSampleQueue];
|
||||
if(sampleIndex >= m_bActiveSamples) {
|
||||
sampleIndex = *(&m_asSamples[1][26].field_91 + m_bActiveSamples +
|
||||
27 * m_bActiveSampleQueue);
|
||||
sampleIndex =
|
||||
m_abSampleQueueIndexTable[m_bActiveSampleQueue][m_bActiveSamples - 1];
|
||||
if(m_asSamples[m_bActiveSampleQueue][sampleIndex].calculatedVolume <=
|
||||
calculatedVolume)
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue