summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-03 15:44:21 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-03 15:44:21 +0100
commit941e70a70111beeb108fadb2af48db19c41e24eb (patch)
treee86829035afa62e14e38120d20b29a6760578f8f /src
parentslightly better variable name (diff)
downloadre3-941e70a70111beeb108fadb2af48db19c41e24eb.tar
re3-941e70a70111beeb108fadb2af48db19c41e24eb.tar.gz
re3-941e70a70111beeb108fadb2af48db19c41e24eb.tar.bz2
re3-941e70a70111beeb108fadb2af48db19c41e24eb.tar.lz
re3-941e70a70111beeb108fadb2af48db19c41e24eb.tar.xz
re3-941e70a70111beeb108fadb2af48db19c41e24eb.tar.zst
re3-941e70a70111beeb108fadb2af48db19c41e24eb.zip
Diffstat (limited to 'src')
-rw-r--r--src/audio/AudioManager.cpp9
-rw-r--r--src/audio/AudioManager.h2
2 files changed, 7 insertions, 4 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index 868f1b65..e1b5be1d 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -17,12 +17,15 @@ const int channels = ARRAY_SIZE(cAudioManager::m_asActiveSamples);
const int policeChannel = channels + 1;
const int allChannels = channels + 2;
+#define SPEED_OF_SOUND 343.f
+#define TIME_SPENT 50
+
cAudioManager::cAudioManager()
{
m_bIsInitialised = false;
- field_1 = 1;
- m_fSpeedOfSound = 6.86f;
- m_nTimeSpent = 50;
+ m_bReverb = true;
+ m_fSpeedOfSound = SPEED_OF_SOUND / TIME_SPENT;
+ m_nTimeSpent = TIME_SPENT;
m_nActiveSamples = NUM_SOUNDS_SAMPLES_SLOTS;
m_nActiveSampleQueue = 1;
ClearRequestedQueue();
diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h
index 9fe2f4ef..2f86ee98 100644
--- a/src/audio/AudioManager.h
+++ b/src/audio/AudioManager.h
@@ -185,7 +185,7 @@ class cAudioManager
{
public:
bool m_bIsInitialised;
- uint8 field_1; // unused
+ bool m_bReverb; // unused
bool m_bFifthFrameFlag;
uint8 m_nActiveSamples;
uint8 field_4; // unused