summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-29 08:42:32 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-29 08:42:32 +0200
commit9a7b469f4e7249ff0c0ecd72b2c28036d71e599d (patch)
tree842e080713ec429a2169223b8cb0ec01b26ad3e5 /src/audio/AudioManager.cpp
parentfix (diff)
downloadre3-9a7b469f4e7249ff0c0ecd72b2c28036d71e599d.tar
re3-9a7b469f4e7249ff0c0ecd72b2c28036d71e599d.tar.gz
re3-9a7b469f4e7249ff0c0ecd72b2c28036d71e599d.tar.bz2
re3-9a7b469f4e7249ff0c0ecd72b2c28036d71e599d.tar.lz
re3-9a7b469f4e7249ff0c0ecd72b2c28036d71e599d.tar.xz
re3-9a7b469f4e7249ff0c0ecd72b2c28036d71e599d.tar.zst
re3-9a7b469f4e7249ff0c0ecd72b2c28036d71e599d.zip
Diffstat (limited to '')
-rw-r--r--src/audio/AudioManager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index a1f2d3be..8921ff7b 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -781,7 +781,7 @@ cAudioManager::AddReflectionsToRequestedQueue()
} else
#endif
emittingVolume = (9 * m_sQueueSample.m_nVolume) / 16;
- m_sQueueSample.m_MaxDistance /= 2.f;
+ m_sQueueSample.m_MaxDistance /= 2.0f;
uint32 halfOldFreq = oldFreq >> 1;
@@ -993,9 +993,9 @@ cAudioManager::AddReleasingSounds()
if (sample.m_nSampleIndex >= SAMPLEBANK_PED_START && sample.m_nSampleIndex <= SAMPLEBANK_PED_END) { // check if it's ped comment
uint8 vol;
if (CWorld::GetIsLineOfSightClear(TheCamera.GetPosition(), sample.m_vecPos, true, false, false, false, false, false))
- vol = MAX_VOLUME;
+ vol = PED_COMMENT_VOLUME;
else
- vol = 31;
+ vol = PED_COMMENT_VOLUME_BEHIND_WALL;
#ifdef EXTERNAL_3D_SOUND
sample.m_nEmittingVolume = vol;
#endif
@@ -1011,7 +1011,7 @@ cAudioManager::AddReleasingSounds()
if (sample.m_nEmittingVolumeChange > 0)
sample.m_nEmittingVolumeChange = volumeDiff * sample.m_nEmittingVolumeChange;
#endif
- sample.m_nVolume = Min(127, newVolume);
+ sample.m_nVolume = Min(MAX_VOLUME, newVolume);
}
}
if (sample.m_nVolume == 0)