summaryrefslogtreecommitdiff
path: root/src/audio
diff options
context:
space:
mode:
authorRoman Masanin <36927roma@gmail.com>2020-09-28 03:29:45 +0300
committerRoman Masanin <36927roma@gmail.com>2020-09-28 03:29:45 +0300
commit37e382c7581426d38d482a27f53c522af184df77 (patch)
tree99020dcfead07735d5ea8999e378e7feb68b34f7 /src/audio
parent9c2e9fcf886533ea2a1fdd415b31c659ca733286 (diff)
fix for frequency misscalculation
Diffstat (limited to 'src/audio')
-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);
}