From abe6c22f56dd2c59c828df798e81266224120af2 Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Thu, 2 Sep 2021 12:25:52 +0300 Subject: [PATCH] Fix heli sound --- src/audio/AudioLogic.cpp | 5 ++--- 1 file 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;