summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-30 10:25:14 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-30 10:26:19 +0200
commit320624edc87778960906d28252752f2471f8a571 (patch)
tree8e0bc48caba844f6e1f72a65d65243c4244bb811
parentFix Squalo render out poly (diff)
downloadre3-320624edc87778960906d28252752f2471f8a571.tar
re3-320624edc87778960906d28252752f2471f8a571.tar.gz
re3-320624edc87778960906d28252752f2471f8a571.tar.bz2
re3-320624edc87778960906d28252752f2471f8a571.tar.lz
re3-320624edc87778960906d28252752f2471f8a571.tar.xz
re3-320624edc87778960906d28252752f2471f8a571.tar.zst
re3-320624edc87778960906d28252752f2471f8a571.zip
-rw-r--r--src/audio/AudioManager.cpp14
-rw-r--r--src/audio/AudioManager.h4
2 files changed, 11 insertions, 7 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index 8921ff7b..a0afe94d 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -1394,18 +1394,20 @@ cAudioManager::ClearActiveSamples()
}
void
-cAudioManager::LoadBankIfNecessary(uint8 bank)
+cAudioManager::GenerateIntegerRandomNumberTable()
{
- if(!SampleManager.IsSampleBankLoaded(bank))
- SampleManager.LoadSampleBank(bank);
+ for (uint32 i = 0; i < ARRAY_SIZE(m_anRandomTable); i++)
+ m_anRandomTable[i] = myrand();
}
+#ifdef GTA_PS2
void
-cAudioManager::GenerateIntegerRandomNumberTable()
+cAudioManager::LoadBankIfNecessary(uint8 bank)
{
- for (uint32 i = 0; i < ARRAY_SIZE(m_anRandomTable); i++)
- m_anRandomTable[i] = myrand();
+ if(!SampleManager.IsSampleBankLoaded(bank))
+ SampleManager.LoadSampleBank(bank);
}
+#endif
#ifdef EXTERNAL_3D_SOUND
void
diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h
index b537c37e..1312826b 100644
--- a/src/audio/AudioManager.h
+++ b/src/audio/AudioManager.h
@@ -349,7 +349,9 @@ public:
void ClearRequestedQueue(); // inlined in vc
void ClearActiveSamples();
void GenerateIntegerRandomNumberTable();
- void LoadBankIfNecessary(uint8 bank);
+#ifdef GTA_PS2
+ void LoadBankIfNecessary(uint8 bank); // this is used only on PS2 but technically not a platform code
+#endif
#ifdef EXTERNAL_3D_SOUND // actually must have been && AUDIO_MSS as well
void AdjustSamplesVolume(); // inlined