diff options
author | Roman Masanin <36927roma@gmail.com> | 2020-09-28 03:29:45 +0300 |
---|---|---|
committer | Roman Masanin <36927roma@gmail.com> | 2020-09-28 03:29:45 +0300 |
commit | 37e382c7581426d38d482a27f53c522af184df77 (patch) | |
tree | 99020dcfead07735d5ea8999e378e7feb68b34f7 /src/audio | |
parent | 9c2e9fcf886533ea2a1fdd415b31c659ca733286 (diff) |
fix for frequency misscalculation
Diffstat (limited to 'src/audio')
-rw-r--r-- | src/audio/AudioManager.cpp | 2 |
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); } |