summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-12 10:46:10 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-12 10:46:10 +0200
commitf1545daeae2cbd37732e317609c3a407e9be53be (patch)
tree0ef60c48e003aededfc8e2718ab5f0bc9f9f09ba /src/audio/AudioManager.cpp
parentReplace static_assert with #error (diff)
downloadre3-f1545daeae2cbd37732e317609c3a407e9be53be.tar
re3-f1545daeae2cbd37732e317609c3a407e9be53be.tar.gz
re3-f1545daeae2cbd37732e317609c3a407e9be53be.tar.bz2
re3-f1545daeae2cbd37732e317609c3a407e9be53be.tar.lz
re3-f1545daeae2cbd37732e317609c3a407e9be53be.tar.xz
re3-f1545daeae2cbd37732e317609c3a407e9be53be.tar.zst
re3-f1545daeae2cbd37732e317609c3a407e9be53be.zip
Diffstat (limited to '')
-rw-r--r--src/audio/AudioManager.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index 7345ceb1..8412f98c 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -29,7 +29,7 @@ cAudioManager::cAudioManager()
ClearRequestedQueue();
ClearActiveSamples();
GenerateIntegerRandomNumberTable();
- field_4 = 0;
+ m_bDoubleVolume = FALSE;
m_bDynamicAcousticModelingStatus = TRUE;
for (int i = 0; i < NUM_AUDIOENTITIES; i++) {
@@ -849,13 +849,13 @@ cAudioManager::ProcessActiveQueues()
if (!sample.m_bReleasingSoundFlag) {
if (sample.m_bIs2D) {
#ifdef EXTERNAL_3D_SOUND
- if (field_4) {
+ if (m_bDoubleVolume) {
emittingVol = 2 * Min(63, sample.m_nEmittingVolume);
} else {
emittingVol = sample.m_nEmittingVolume;
}
#else
- if (field_4) {
+ if (m_bDoubleVolume) {
emittingVol = 2 * Min(63, sample.m_nVolume);
} else {
emittingVol = sample.m_nVolume;
@@ -897,7 +897,7 @@ cAudioManager::ProcessActiveQueues()
}
uint8 emittingVol;
- if (field_4) {
+ if (m_bDoubleVolume) {
emittingVol = 2 * Min(63, vol);
} else {
emittingVol = vol;
@@ -915,7 +915,7 @@ cAudioManager::ProcessActiveQueues()
m_asActiveSamples[j].m_nVolume = vol;
uint8 emittingVol;
- if (field_4) {
+ if (m_bDoubleVolume) {
emittingVol = 2 * Min(63, vol);
} else {
emittingVol = vol;
@@ -973,13 +973,13 @@ cAudioManager::ProcessActiveQueues()
}
#ifdef EXTERNAL_3D_SOUND
- if (field_4) {
+ if (m_bDoubleVolume) {
emittingVol = 2 * Min(63, m_asActiveSamples[j].m_nEmittingVolume);
} else {
emittingVol = m_asActiveSamples[j].m_nEmittingVolume;
}
#else
- if (field_4) {
+ if (m_bDoubleVolume) {
emittingVol = 2 * Min(63, m_asActiveSamples[j].m_nVolume);
} else {
emittingVol = m_asActiveSamples[j].m_nVolume;