mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-28 14:35:40 +00:00
Merge branch 'miami' into lcs
# Conflicts: # src/audio/AudioManager.h
This commit is contained in:
commit
6df0cb1ddb
2 changed files with 11 additions and 7 deletions
|
@ -1390,18 +1390,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
|
||||
|
||||
void
|
||||
cAudioManager::DirectlyEnqueueSample(uint32 sample, uint8 bank, uint32 counter, uint32 priority, uint32 freq, uint8 volume, uint8 framesToPlay, uint32 notStereo)
|
||||
|
|
|
@ -359,7 +359,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
|
||||
void DirectlyEnqueueSample(uint32 sample, uint8 bank, uint32 counter, uint32 priority, uint32 freq, uint8 volume, uint8 framesToPlay, uint32 notStereo = 0);
|
||||
|
||||
#ifdef EXTERNAL_3D_SOUND // actually must have been && AUDIO_MSS as well
|
||||
|
|
Loading…
Reference in a new issue