summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-06-30 18:06:58 +0200
committerSergeanur <s.anureev@yandex.ua>2020-06-30 18:06:58 +0200
commitda93b0a078b728051bb3ad185956a6715f397c2d (patch)
tree7df9de9f747e171a87491a18c624bce942225fd8 /src/audio/AudioManager.cpp
parentFix glfw build (diff)
downloadre3-da93b0a078b728051bb3ad185956a6715f397c2d.tar
re3-da93b0a078b728051bb3ad185956a6715f397c2d.tar.gz
re3-da93b0a078b728051bb3ad185956a6715f397c2d.tar.bz2
re3-da93b0a078b728051bb3ad185956a6715f397c2d.tar.lz
re3-da93b0a078b728051bb3ad185956a6715f397c2d.tar.xz
re3-da93b0a078b728051bb3ad185956a6715f397c2d.tar.zst
re3-da93b0a078b728051bb3ad185956a6715f397c2d.zip
Diffstat (limited to 'src/audio/AudioManager.cpp')
-rw-r--r--src/audio/AudioManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index 757254e6..58483602 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -436,7 +436,7 @@ cAudioManager::ServiceSoundEffects()
}
ClearActiveSamples();
}
- m_nActiveSampleQueue = m_nActiveSampleQueue != 1;
+ m_nActiveSampleQueue = m_nActiveSampleQueue == 1 ? 0 : 1;
ProcessReverb();
ProcessSpecial();
ClearRequestedQueue();
@@ -686,7 +686,7 @@ cAudioManager::AddReleasingSounds()
{
bool toProcess[44]; // why not 27?
- int8 queue = m_nActiveSampleQueue == 0;
+ int8 queue = m_nActiveSampleQueue == 0 ? 1 : 0;
for (int32 i = 0; i < m_SampleRequestQueuesStatus[queue]; i++) {
tSound &sample = m_asSamples[queue][m_abSampleQueueIndexTable[queue][i]];