summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.cpp
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 /src/audio/AudioManager.cpp
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
Diffstat (limited to 'src/audio/AudioManager.cpp')
-rw-r--r--src/audio/AudioManager.cpp14
1 files changed, 8 insertions, 6 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