Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Merge pull request #722 from theR4K/master
fix for frequency miscalculation
  • Loading branch information
shfil authored and Sergeanur committed Sep 29, 2020
1 parent 35656fe commit f35fd97c7632784e206093891272f03dc11653a8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/audio/AudioManager.cpp
@@ -811,7 +811,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);
}

0 comments on commit f35fd97

Please sign in to comment.