mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-29 14:55:43 +00:00
Make frequency more consistent with vanilla
This commit is contained in:
parent
2129cc2906
commit
ff2998bee3
1 changed files with 5 additions and 1 deletions
|
@ -811,7 +811,11 @@ 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((int32)sample.m_nFrequency, (int32)(m_asActiveSamples[j].m_nFrequency) - 6000);
|
#if FIX_BUGS
|
||||||
|
freq = Max((int32)sample.m_nFrequency, (int32)m_asActiveSamples[j].m_nFrequency - 6000);
|
||||||
|
#else
|
||||||
|
freq = Max((int32)sample.m_nFrequency, int32(m_asActiveSamples[j].m_nFrequency - 6000));
|
||||||
|
#endif
|
||||||
} 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 a new issue