summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-18 19:17:24 +0200
committerSergeanur <s.anureev@yandex.ua>2020-05-18 19:17:24 +0200
commite891cf858f7d2a7c5bbb4ff46400508ffbe3c8b9 (patch)
tree90e9c5f9adf97940a464842beb621e20d0967142 /src/audio/AudioManager.cpp
parentMerge pull request #556 from Fire-Head/master (diff)
downloadre3-e891cf858f7d2a7c5bbb4ff46400508ffbe3c8b9.tar
re3-e891cf858f7d2a7c5bbb4ff46400508ffbe3c8b9.tar.gz
re3-e891cf858f7d2a7c5bbb4ff46400508ffbe3c8b9.tar.bz2
re3-e891cf858f7d2a7c5bbb4ff46400508ffbe3c8b9.tar.lz
re3-e891cf858f7d2a7c5bbb4ff46400508ffbe3c8b9.tar.xz
re3-e891cf858f7d2a7c5bbb4ff46400508ffbe3c8b9.tar.zst
re3-e891cf858f7d2a7c5bbb4ff46400508ffbe3c8b9.zip
Diffstat (limited to '')
-rw-r--r--src/audio/AudioManager.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index 458341b9..bd1ac84b 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -16,7 +16,6 @@ cAudioManager AudioManager;
const int channels = ARRAY_SIZE(cAudioManager::m_asActiveSamples);
const int policeChannel = channels + 1;
const int allChannels = channels + 2;
-const int maxVolume = 127;
cAudioManager::cAudioManager()
{
@@ -548,7 +547,7 @@ cAudioManager::AddSampleToRequestedQueue()
bool bReflections;
if (m_sQueueSample.m_nSampleIndex < TOTAL_AUDIO_SAMPLES) {
- calculatedVolume = m_sQueueSample.m_nReleasingVolumeModificator * (maxVolume - m_sQueueSample.m_nVolume);
+ calculatedVolume = m_sQueueSample.m_nReleasingVolumeModificator * (MAX_VOLUME - m_sQueueSample.m_nVolume);
sampleIndex = m_SampleRequestQueuesStatus[m_nActiveSampleQueue];
if (sampleIndex >= m_nActiveSamples) {
sampleIndex = m_abSampleQueueIndexTable[m_nActiveSampleQueue][m_nActiveSamples - 1];
@@ -942,7 +941,7 @@ void
cAudioManager::GenerateIntegerRandomNumberTable()
{
for (int32 i = 0; i < ARRAY_SIZE(m_anRandomTable); i++) {
- m_anRandomTable[i] = rand();
+ m_anRandomTable[i] = myrand();
}
}