1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-23 00:50:00 +00:00

fix for frequency misscalculation

This commit is contained in:
Roman Masanin 2020-09-28 03:29:45 +03:00
parent 9c2e9fcf88
commit 37e382c758

View file

@ -794,7 +794,7 @@ cAudioManager::ProcessActiveQueues()
if (sample.m_nFrequency != m_asActiveSamples[j].m_nFrequency) { if (sample.m_nFrequency != m_asActiveSamples[j].m_nFrequency) {
int32 freq; int32 freq;
if (sample.m_nFrequency <= m_asActiveSamples[j].m_nFrequency) { 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 { } else {
freq = Min(sample.m_nFrequency, m_asActiveSamples[j].m_nFrequency + 6000); freq = Min(sample.m_nFrequency, m_asActiveSamples[j].m_nFrequency + 6000);
} }