summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.cpp
diff options
context:
space:
mode:
authorRoman Masanin <36927roma@gmail.com>2020-10-12 17:09:58 +0200
committerRoman Masanin <36927roma@gmail.com>2020-10-12 17:09:58 +0200
commite34261d3ef3d618822b531d12cdd7a79b5ad46f8 (patch)
treea56e0ab6d286d2c72d685c6fcea5cc62ccf2b49e /src/audio/AudioManager.cpp
parentMerge pull request #753 from majesticCoding/miami (diff)
downloadre3-e34261d3ef3d618822b531d12cdd7a79b5ad46f8.tar
re3-e34261d3ef3d618822b531d12cdd7a79b5ad46f8.tar.gz
re3-e34261d3ef3d618822b531d12cdd7a79b5ad46f8.tar.bz2
re3-e34261d3ef3d618822b531d12cdd7a79b5ad46f8.tar.lz
re3-e34261d3ef3d618822b531d12cdd7a79b5ad46f8.tar.xz
re3-e34261d3ef3d618822b531d12cdd7a79b5ad46f8.tar.zst
re3-e34261d3ef3d618822b531d12cdd7a79b5ad46f8.zip
Diffstat (limited to '')
-rw-r--r--src/audio/AudioManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index 93ac8857..d2a85285 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -432,7 +432,7 @@ cAudioManager::IsAudioInitialised() const
void
cAudioManager::ServiceSoundEffects()
{
- field_5554++;
+ m_FrameCounter++;
m_bFifthFrameFlag = (m_FrameCounter++ % 5) == 0;
if (m_nUserPause && !m_nPreviousUserPause) {
for (int32 i = 0; i < allChannels; i++)
@@ -771,7 +771,7 @@ cAudioManager::ProcessActiveQueues()
sample.m_nSampleIndex == m_asActiveSamples[j].m_nSampleIndex) {
if (sample.m_nLoopCount) {
- if (field_5554 & 1) {
+ if (m_FrameCounter & 1) {
if (!(j & 1)) {
flag = false;
} else {