diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-08-30 07:23:10 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-08-30 07:23:10 +0200 |
commit | 0df6fbb30a4279521fed7efcc6620afed45d0532 (patch) | |
tree | 7f3f737ad7457bb68b050b33243dbd0e387949a0 /src | |
parent | Fix bugs in cAudioManager::DirectlyEnqueueSample (diff) | |
download | re3-0df6fbb30a4279521fed7efcc6620afed45d0532.tar re3-0df6fbb30a4279521fed7efcc6620afed45d0532.tar.gz re3-0df6fbb30a4279521fed7efcc6620afed45d0532.tar.bz2 re3-0df6fbb30a4279521fed7efcc6620afed45d0532.tar.lz re3-0df6fbb30a4279521fed7efcc6620afed45d0532.tar.xz re3-0df6fbb30a4279521fed7efcc6620afed45d0532.tar.zst re3-0df6fbb30a4279521fed7efcc6620afed45d0532.zip |
Diffstat (limited to '')
-rw-r--r-- | src/audio/AudioManager.cpp | 3 | ||||
-rw-r--r-- | src/audio/AudioManager.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp index b9970562..987194bc 100644 --- a/src/audio/AudioManager.cpp +++ b/src/audio/AudioManager.cpp @@ -687,7 +687,7 @@ cAudioManager::InterrogateAudioEntities() } void -cAudioManager::AddSampleToRequestedQueue() +cAudioManager::AddSampleToRequestedQueue(uint8 unk_lcs) { uint32 finalPriority; uint8 sampleIndex; @@ -726,6 +726,7 @@ cAudioManager::AddSampleToRequestedQueue() m_sQueueSample.m_bReverb = FALSE; #endif #endif + m_sQueueSample.field_51_lcs = unk_lcs; m_aRequestedQueue[m_nActiveQueue][sampleIndex] = m_sQueueSample; diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h index f9472a52..e4256996 100644 --- a/src/audio/AudioManager.h +++ b/src/audio/AudioManager.h @@ -59,6 +59,7 @@ public: #if defined(FIX_BUGS) && defined(EXTERNAL_3D_SOUND) int8 m_nEmittingVolumeChange; // same as above but for m_nEmittingVolume #endif + uint8 field_51_lcs; }; VALIDATE_SIZE(tSound, 96); @@ -347,7 +348,7 @@ public: uint32 ComputeDopplerEffectedFrequency(uint32 oldFreq, float position1, float position2, float speedMultiplier); int32 RandomDisplacement(uint32 seed); void InterrogateAudioEntities(); // inlined - void AddSampleToRequestedQueue(); + void AddSampleToRequestedQueue(uint8 unk_lcs = 0); void AddDetailsToRequestedOrderList(uint8 sample); // inlined in vc #ifdef AUDIO_REFLECTIONS void AddReflectionsToRequestedQueue(); |