From 7ba5b3c353e910b8924fd236a71bb8463e7b38f8 Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Sat, 2 May 2020 17:10:51 +0300 Subject: A bit more audio cleanup --- src/audio/AudioManager.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/audio/AudioManager.h') diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h index 66d0e588..ccef42ff 100644 --- a/src/audio/AudioManager.h +++ b/src/audio/AudioManager.h @@ -167,7 +167,7 @@ public: bool m_bTimerJustReset; int32 m_nTimer; tSound m_sQueueSample; - bool m_bActiveSampleQueue; + uint8 m_nActiveSampleQueue; tSound m_asSamples[NUM_SOUNDS_SAMPLES_BANKS][NUM_SOUNDS_SAMPLES_SLOTS]; uint8 m_abSampleQueueIndexTable[NUM_SOUNDS_SAMPLES_BANKS][NUM_SOUNDS_SAMPLES_SLOTS]; uint8 m_SampleRequestQueuesStatus[NUM_SOUNDS_SAMPLES_BANKS]; @@ -202,6 +202,7 @@ public: uint32 GetFrameCounter() const { return m_FrameCounter; } float GetReflectionsDistance(int32 idx) const { return m_afReflectionsDistances[idx]; } int32 GetRandomNumber(int32 idx) const { return m_anRandomTable[idx]; } + int32 GetRandomNumberInRange(int32 idx, int32 low, int32 high) const { return (m_anRandomTable[idx] % (high - low + 1)) + low; } bool IsMissionAudioPlaying() const { return m_sMissionAudio.m_nPlayStatus == 1; } // "Should" be in alphabetic order, except "getXTalkSfx" -- cgit v1.2.3