summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-11-08 14:00:54 +0100
committerSergeanur <s.anureev@yandex.ua>2020-11-08 14:00:54 +0100
commita2e0373d225b7826375939e74deff7d6bb6a32ef (patch)
treeb63cd9cc269c5de65072b834c965d63613deee54 /src/audio
parentPed comments fixes (diff)
downloadre3-a2e0373d225b7826375939e74deff7d6bb6a32ef.tar
re3-a2e0373d225b7826375939e74deff7d6bb6a32ef.tar.gz
re3-a2e0373d225b7826375939e74deff7d6bb6a32ef.tar.bz2
re3-a2e0373d225b7826375939e74deff7d6bb6a32ef.tar.lz
re3-a2e0373d225b7826375939e74deff7d6bb6a32ef.tar.xz
re3-a2e0373d225b7826375939e74deff7d6bb6a32ef.tar.zst
re3-a2e0373d225b7826375939e74deff7d6bb6a32ef.zip
Diffstat (limited to '')
-rw-r--r--src/audio/AudioLogic.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index 4c040efb..4822fd04 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -7201,7 +7201,10 @@ cPedComments::Process()
AudioManager.m_sQueueSample.m_bRequireReflection = true;
AudioManager.m_sQueueSample.m_bIs2D = false;
#ifdef FIX_BUGS
- AudioManager.m_sQueueSample.m_bIs2D = sampleIndex >= 8694 && sampleIndex < TOTAL_AUDIO_SAMPLES; // check if player sfx, TODO: enum
+ if (sampleIndex >= 8694 && sampleIndex < TOTAL_AUDIO_SAMPLES) { // check if player sfx, TODO: enum
+ AudioManager.m_sQueueSample.m_bIs2D = true;
+ AudioManager.m_sQueueSample.m_nOffset = 63;
+ }
#endif // FIX_BUGS
AudioManager.m_sQueueSample.m_nFrequency =
SampleManager.GetSampleBaseFrequency(AudioManager.m_sQueueSample.m_nSampleIndex) + AudioManager.RandomDisplacement(750);