1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-22 19:19:59 +00:00

Merge pull request #722 from theR4K/master

fix for frequency miscalculation
This commit is contained in:
shfil 2020-09-28 20:05:28 +02:00 committed by GitHub
commit 20167f341e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}