diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-08-18 20:07:33 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-08-18 20:07:33 +0200 |
commit | eda2c054489e83a03a14976747cd19e3ac60d7a4 (patch) | |
tree | fd5338b76e24286a0900d4964a38a576ef8bad99 /src/audio/AudioManager.cpp | |
parent | Fix acceleration sound playing when exiting the vehicle (diff) | |
download | re3-eda2c054489e83a03a14976747cd19e3ac60d7a4.tar re3-eda2c054489e83a03a14976747cd19e3ac60d7a4.tar.gz re3-eda2c054489e83a03a14976747cd19e3ac60d7a4.tar.bz2 re3-eda2c054489e83a03a14976747cd19e3ac60d7a4.tar.lz re3-eda2c054489e83a03a14976747cd19e3ac60d7a4.tar.xz re3-eda2c054489e83a03a14976747cd19e3ac60d7a4.tar.zst re3-eda2c054489e83a03a14976747cd19e3ac60d7a4.zip |
Diffstat (limited to 'src/audio/AudioManager.cpp')
-rw-r--r-- | src/audio/AudioManager.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp index 15c8c00e..a288ac12 100644 --- a/src/audio/AudioManager.cpp +++ b/src/audio/AudioManager.cpp @@ -955,7 +955,12 @@ cAudioManager::ProcessActiveQueues() #else emittingVol = m_bDoubleVolume ? 2 * Min(63, m_asActiveSamples[j].m_nVolume) : m_asActiveSamples[j].m_nVolume; #endif +#ifdef GTA_PS2 + { + SampleManager.InitialiseChannel(j, m_asActiveSamples[j].m_nSampleIndex, m_asActiveSamples[j].m_nBankIndex); +#else if (SampleManager.InitialiseChannel(j, m_asActiveSamples[j].m_nSampleIndex, m_asActiveSamples[j].m_nBankIndex)) { +#endif SampleManager.SetChannelFrequency(j, m_asActiveSamples[j].m_nFrequency); #ifdef EXTERNAL_3D_SOUND SampleManager.SetChannelEmittingVolume(j, emittingVol); @@ -963,8 +968,10 @@ cAudioManager::ProcessActiveQueues() SampleManager.SetChannelVolume(j, emittingVol); SampleManager.SetChannelPan(j, m_asActiveSamples[j].m_nOffset); #endif +#ifndef GTA_PS2 SampleManager.SetChannelLoopPoints(j, m_asActiveSamples[j].m_nLoopStart, m_asActiveSamples[j].m_nLoopEnd); SampleManager.SetChannelLoopCount(j, m_asActiveSamples[j].m_nLoopCount); +#endif SampleManager.SetChannelReverbFlag(j, m_asActiveSamples[j].m_bReverbFlag); #ifdef EXTERNAL_3D_SOUND if (m_asActiveSamples[j].m_bIs2D) { |