summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-06-12 13:58:49 +0200
committerSergeanur <s.anureev@yandex.ua>2021-06-24 20:45:49 +0200
commitdb1c7de125b1fe552d01b4f3e3a635728a806e02 (patch)
tree305e0d71e6e56ffc7c285e72fb05b6ab55248f13 /src/audio
parentfix (diff)
downloadre3-db1c7de125b1fe552d01b4f3e3a635728a806e02.tar
re3-db1c7de125b1fe552d01b4f3e3a635728a806e02.tar.gz
re3-db1c7de125b1fe552d01b4f3e3a635728a806e02.tar.bz2
re3-db1c7de125b1fe552d01b4f3e3a635728a806e02.tar.lz
re3-db1c7de125b1fe552d01b4f3e3a635728a806e02.tar.xz
re3-db1c7de125b1fe552d01b4f3e3a635728a806e02.tar.zst
re3-db1c7de125b1fe552d01b4f3e3a635728a806e02.zip
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/AudioLogic.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index 5261cbde..a199266c 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -9034,24 +9034,25 @@ cAudioManager::ProcessFrontEnd()
m_sQueueSample.m_nEmittingVolume = m_sQueueSample.m_nVolume;
m_sQueueSample.m_nLoopStart = 0;
m_sQueueSample.m_nLoopEnd = -1;
- m_sQueueSample.m_fDistance = 1.0f;
- if (stereo)
+ if (stereo) {
m_sQueueSample.m_nOffset = 0;
- else {
+ m_sQueueSample.m_fDistance = 1.0f;
+ } else {
sample = m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_awAudioEvent[i];
if (sample == SOUND_BULLETTRACE_1) {
m_sQueueSample.m_nOffset = 20;
m_sQueueSample.m_nVolume = m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_afVolume[i];
m_sQueueSample.m_nReleasingVolumeModificator = 10;
m_sQueueSample.m_fDistance = 100.0f;
- }
- if (sample == SOUND_BULLETTRACE_2) {
+ } else if (sample == SOUND_BULLETTRACE_2) {
m_sQueueSample.m_nOffset = 107;
m_sQueueSample.m_nVolume = m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_afVolume[i];
m_sQueueSample.m_nReleasingVolumeModificator = 10;
m_sQueueSample.m_fDistance = 100.0f;
+ } else {
+ m_sQueueSample.m_nOffset = 63;
+ m_sQueueSample.m_fDistance = 1.0f;
}
- m_sQueueSample.m_nOffset = 63;
}
m_sQueueSample.m_bReverbFlag = FALSE;
m_sQueueSample.m_bRequireReflection = FALSE;