summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioLogic.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-09-02 11:25:52 +0200
committerSergeanur <s.anureev@yandex.ua>2021-09-02 11:25:52 +0200
commitabe6c22f56dd2c59c828df798e81266224120af2 (patch)
tree77353742e681b1ac3868202e50e85ed02a0e0f6f /src/audio/AudioLogic.cpp
parentAudio: add separate buffer for player comments like on PS2 to fix overflow, add ped comments debug to debug menu (diff)
downloadre3-abe6c22f56dd2c59c828df798e81266224120af2.tar
re3-abe6c22f56dd2c59c828df798e81266224120af2.tar.gz
re3-abe6c22f56dd2c59c828df798e81266224120af2.tar.bz2
re3-abe6c22f56dd2c59c828df798e81266224120af2.tar.lz
re3-abe6c22f56dd2c59c828df798e81266224120af2.tar.xz
re3-abe6c22f56dd2c59c828df798e81266224120af2.tar.zst
re3-abe6c22f56dd2c59c828df798e81266224120af2.zip
Diffstat (limited to '')
-rw-r--r--src/audio/AudioLogic.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index 9461af66..54d7ad59 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -1288,13 +1288,12 @@ cAudioManager::ProcessCarHeli(cVehicleParams& params)
if (hunterBool) {
m_sQueueSample.m_nSampleIndex = SFX_HELI_APACHE_4;
m_sQueueSample.m_nBankIndex = SFX_BANK_0;
- freq = 3000 * propellerSpeed + 30000;
+ m_sQueueSample.m_nFrequency = 3000 * propellerSpeed + 30000;
} else {
m_sQueueSample.m_nSampleIndex = SFX_CAR_HELI_STA;
m_sQueueSample.m_nBankIndex = SFX_BANK_0;
- freq = 3000 * propellerSpeed + 6000;
+ m_sQueueSample.m_nFrequency = 3000 * propellerSpeed + 6000;
}
- m_sQueueSample.m_nFrequency = freq;
m_sQueueSample.m_nCounter = 12;
m_sQueueSample.m_bIs2D = FALSE;
m_sQueueSample.m_nPriority = 1;