summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.cpp
diff options
context:
space:
mode:
authorRoman Masanin <36927roma@gmail.com>2020-09-28 02:29:45 +0200
committerRoman Masanin <36927roma@gmail.com>2020-09-28 02:29:45 +0200
commit37e382c7581426d38d482a27f53c522af184df77 (patch)
tree99020dcfead07735d5ea8999e378e7feb68b34f7 /src/audio/AudioManager.cpp
parentFix RotateY (diff)
downloadre3-37e382c7581426d38d482a27f53c522af184df77.tar
re3-37e382c7581426d38d482a27f53c522af184df77.tar.gz
re3-37e382c7581426d38d482a27f53c522af184df77.tar.bz2
re3-37e382c7581426d38d482a27f53c522af184df77.tar.lz
re3-37e382c7581426d38d482a27f53c522af184df77.tar.xz
re3-37e382c7581426d38d482a27f53c522af184df77.tar.zst
re3-37e382c7581426d38d482a27f53c522af184df77.zip
Diffstat (limited to 'src/audio/AudioManager.cpp')
-rw-r--r--src/audio/AudioManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index 58483602..cd01fb59 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -794,7 +794,7 @@ cAudioManager::ProcessActiveQueues()
if (sample.m_nFrequency != m_asActiveSamples[j].m_nFrequency) {
int32 freq;
if (sample.m_nFrequency <= m_asActiveSamples[j].m_nFrequency) {
- freq = Max(sample.m_nFrequency, m_asActiveSamples[j].m_nFrequency - 6000);
+ freq = Max((int32)sample.m_nFrequency, (int32)(m_asActiveSamples[j].m_nFrequency - 6000));
} else {
freq = Min(sample.m_nFrequency, m_asActiveSamples[j].m_nFrequency + 6000);
}