diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-09-02 11:25:52 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-09-02 11:25:52 +0200 |
commit | abe6c22f56dd2c59c828df798e81266224120af2 (patch) | |
tree | 77353742e681b1ac3868202e50e85ed02a0e0f6f /src/audio | |
parent | Audio: add separate buffer for player comments like on PS2 to fix overflow, add ped comments debug to debug menu (diff) | |
download | re3-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.cpp | 5 |
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; |