diff options
author | Filip Gawin <filip.gawin@zoho.com> | 2020-12-22 14:53:45 +0100 |
---|---|---|
committer | Filip Gawin <filip.gawin@zoho.com> | 2020-12-22 14:53:45 +0100 |
commit | 35473e653d1b7e99c0ad68c07ff5ba6933c477f6 (patch) | |
tree | d40a29f063d902d0709176058e59656d2e72bb94 /src/audio/AudioManager.cpp | |
parent | Merge pull request #891 from Nick007J/miami (diff) | |
download | re3-35473e653d1b7e99c0ad68c07ff5ba6933c477f6.tar re3-35473e653d1b7e99c0ad68c07ff5ba6933c477f6.tar.gz re3-35473e653d1b7e99c0ad68c07ff5ba6933c477f6.tar.bz2 re3-35473e653d1b7e99c0ad68c07ff5ba6933c477f6.tar.lz re3-35473e653d1b7e99c0ad68c07ff5ba6933c477f6.tar.xz re3-35473e653d1b7e99c0ad68c07ff5ba6933c477f6.tar.zst re3-35473e653d1b7e99c0ad68c07ff5ba6933c477f6.zip |
Diffstat (limited to 'src/audio/AudioManager.cpp')
-rw-r--r-- | src/audio/AudioManager.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp index fbfdb855..069a68be 100644 --- a/src/audio/AudioManager.cpp +++ b/src/audio/AudioManager.cpp @@ -20,7 +20,7 @@ const int allChannels = channels + 2; cAudioManager::cAudioManager() { m_bIsInitialised = false; - field_1 = 1; + m_bReverb = true; m_fSpeedOfSound = 6.86f; m_nTimeSpent = 50; m_nActiveSamples = NUM_SOUNDS_SAMPLES_SLOTS; @@ -426,7 +426,8 @@ cAudioManager::CheckForAnAudioFileOnCD() const uint8 cAudioManager::GetCDAudioDriveLetter() const { - return SampleManager.GetCDAudioDriveLetter(); + if(m_bIsInitialised) return SampleManager.GetCDAudioDriveLetter(); + return 0; } bool @@ -456,7 +457,7 @@ cAudioManager::ServiceSoundEffects() ClearActiveSamples(); } m_nActiveSampleQueue = m_nActiveSampleQueue == 1 ? 0 : 1; - ProcessReverb(); + if(m_bReverb) ProcessReverb(); ProcessSpecial(); ClearRequestedQueue(); InterrogateAudioEntities(); |