diff options
author | Filip Gawin <filip.gawin@zoho.com> | 2020-09-29 16:56:40 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-09-30 01:18:38 +0200 |
commit | ff2998bee36509e8db74ea482eb33217c9129d63 (patch) | |
tree | cb4b43a71040e51a331600925b6b43cf4774416e /src/audio/AudioManager.cpp | |
parent | Fix arg types (diff) | |
download | re3-ff2998bee36509e8db74ea482eb33217c9129d63.tar re3-ff2998bee36509e8db74ea482eb33217c9129d63.tar.gz re3-ff2998bee36509e8db74ea482eb33217c9129d63.tar.bz2 re3-ff2998bee36509e8db74ea482eb33217c9129d63.tar.lz re3-ff2998bee36509e8db74ea482eb33217c9129d63.tar.xz re3-ff2998bee36509e8db74ea482eb33217c9129d63.tar.zst re3-ff2998bee36509e8db74ea482eb33217c9129d63.zip |
Diffstat (limited to 'src/audio/AudioManager.cpp')
-rw-r--r-- | src/audio/AudioManager.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp index aadfde92..61bf5a86 100644 --- a/src/audio/AudioManager.cpp +++ b/src/audio/AudioManager.cpp @@ -811,7 +811,11 @@ cAudioManager::ProcessActiveQueues() if (sample.m_nFrequency != m_asActiveSamples[j].m_nFrequency) { int32 freq; 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 { freq = Min(sample.m_nFrequency, m_asActiveSamples[j].m_nFrequency + 6000); } |