summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-20 13:39:36 +0200
committerSergeanur <s.anureev@yandex.ua>2020-05-20 13:39:36 +0200
commitc53b23cff026e72bca295495ab0bc9c20a18c599 (patch)
tree172de606bc1a2e203f8ee5933a47e26370f90668 /src/audio/AudioManager.cpp
parentMerge pull request #569 from aap/miami (diff)
parentfixed script bug (diff)
downloadre3-c53b23cff026e72bca295495ab0bc9c20a18c599.tar
re3-c53b23cff026e72bca295495ab0bc9c20a18c599.tar.gz
re3-c53b23cff026e72bca295495ab0bc9c20a18c599.tar.bz2
re3-c53b23cff026e72bca295495ab0bc9c20a18c599.tar.lz
re3-c53b23cff026e72bca295495ab0bc9c20a18c599.tar.xz
re3-c53b23cff026e72bca295495ab0bc9c20a18c599.tar.zst
re3-c53b23cff026e72bca295495ab0bc9c20a18c599.zip
Diffstat (limited to 'src/audio/AudioManager.cpp')
-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();
}
}