Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
fix for frequency misscalculation
  • Loading branch information
theR4K committed Sep 28, 2020
1 parent 9c2e9fc commit 37e382c7581426d38d482a27f53c522af184df77
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);
}

0 comments on commit 37e382c

Please sign in to comment.