mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-25 18:46:52 +01:00
Merge pull request #722 from theR4K/master
fix for frequency miscalculation
This commit is contained in:
commit
20167f341e
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user