summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.cpp
diff options
context:
space:
mode:
authorRoman Masanin <36927roma@gmail.com>2020-09-28 19:48:28 +0200
committerRoman Masanin <36927roma@gmail.com>2020-09-28 19:48:28 +0200
commit7576b003c6862280cd2c7ca13e4804c8f78f28ae (patch)
tree6b2d2ed558057e81d9d9252ff9120bc87f98dcd1 /src/audio/AudioManager.cpp
parentMerge remote-tracking branch 'upstream/master' (diff)
downloadre3-7576b003c6862280cd2c7ca13e4804c8f78f28ae.tar
re3-7576b003c6862280cd2c7ca13e4804c8f78f28ae.tar.gz
re3-7576b003c6862280cd2c7ca13e4804c8f78f28ae.tar.bz2
re3-7576b003c6862280cd2c7ca13e4804c8f78f28ae.tar.lz
re3-7576b003c6862280cd2c7ca13e4804c8f78f28ae.tar.xz
re3-7576b003c6862280cd2c7ca13e4804c8f78f28ae.tar.zst
re3-7576b003c6862280cd2c7ca13e4804c8f78f28ae.zip
Diffstat (limited to 'src/audio/AudioManager.cpp')
-rw-r--r--src/audio/AudioManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index feaa6708..754bce18 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -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((int32)sample.m_nFrequency, (int32)(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);
}