fix for frequency misscalculation
This commit is contained in:
parent
9c2e9fcf88
commit
37e382c758
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user