summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.cpp
diff options
context:
space:
mode:
authorFilip Gawin <filip.gawin@zoho.com>2020-09-29 16:56:40 +0200
committerFilip Gawin <filip.gawin@zoho.com>2020-09-29 16:56:40 +0200
commita0b6410801b38c5e429b4dd4a2e8975615a615db (patch)
treeee133049afcecc003144b16528cec02c8aec43a1 /src/audio/AudioManager.cpp
parentFix arg types (diff)
downloadre3-a0b6410801b38c5e429b4dd4a2e8975615a615db.tar
re3-a0b6410801b38c5e429b4dd4a2e8975615a615db.tar.gz
re3-a0b6410801b38c5e429b4dd4a2e8975615a615db.tar.bz2
re3-a0b6410801b38c5e429b4dd4a2e8975615a615db.tar.lz
re3-a0b6410801b38c5e429b4dd4a2e8975615a615db.tar.xz
re3-a0b6410801b38c5e429b4dd4a2e8975615a615db.tar.zst
re3-a0b6410801b38c5e429b4dd4a2e8975615a615db.zip
Diffstat (limited to 'src/audio/AudioManager.cpp')
-rw-r--r--src/audio/AudioManager.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index 754bce18..994cab35 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -794,7 +794,11 @@ cAudioManager::ProcessActiveQueues()
if (sample.m_nFrequency != m_asActiveSamples[j].m_nFrequency) {
int32 freq;
if (sample.m_nFrequency <= m_asActiveSamples[j].m_nFrequency) {
- freq = Max((int32)sample.m_nFrequency, (int32)(m_asActiveSamples[j].m_nFrequency) - 6000);
+#if FIX_BUGS
+ freq = Max((int32)sample.m_nFrequency, (int32)m_asActiveSamples[j].m_nFrequency - 6000);
+#else
+ freq = Max((int32)sample.m_nFrequency, int32(m_asActiveSamples[j].m_nFrequency - 6000));
+#endif
} else {
freq = Min(sample.m_nFrequency, m_asActiveSamples[j].m_nFrequency + 6000);
}