mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-25 10:23:44 +00:00
Audio: ps2 code ifdef
This commit is contained in:
parent
9bb34fab25
commit
bcdeb71070
2 changed files with 11 additions and 7 deletions
|
@ -1199,13 +1199,6 @@ cAudioManager::ClearActiveSamples()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
cAudioManager::LoadBankIfNecessary(uint8 bank)
|
|
||||||
{
|
|
||||||
if(!SampleManager.IsSampleBankLoaded(bank))
|
|
||||||
SampleManager.LoadSampleBank(bank);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
cAudioManager::GenerateIntegerRandomNumberTable()
|
cAudioManager::GenerateIntegerRandomNumberTable()
|
||||||
{
|
{
|
||||||
|
@ -1213,6 +1206,15 @@ cAudioManager::GenerateIntegerRandomNumberTable()
|
||||||
m_anRandomTable[i] = myrand();
|
m_anRandomTable[i] = myrand();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef GTA_PS2
|
||||||
|
void
|
||||||
|
cAudioManager::LoadBankIfNecessary(uint8 bank)
|
||||||
|
{
|
||||||
|
if(!SampleManager.IsSampleBankLoaded(bank))
|
||||||
|
SampleManager.LoadSampleBank(bank);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef EXTERNAL_3D_SOUND
|
#ifdef EXTERNAL_3D_SOUND
|
||||||
void
|
void
|
||||||
cAudioManager::AdjustSamplesVolume()
|
cAudioManager::AdjustSamplesVolume()
|
||||||
|
|
|
@ -318,7 +318,9 @@ public:
|
||||||
void ClearRequestedQueue(); // inlined on PS2
|
void ClearRequestedQueue(); // inlined on PS2
|
||||||
void ClearActiveSamples();
|
void ClearActiveSamples();
|
||||||
void GenerateIntegerRandomNumberTable(); // inlined on PS2
|
void GenerateIntegerRandomNumberTable(); // inlined on PS2
|
||||||
|
#ifdef GTA_PS2
|
||||||
void LoadBankIfNecessary(uint8 bank); // this is used only on PS2 but technically not a platform code
|
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
|
#ifdef EXTERNAL_3D_SOUND // actually must have been && AUDIO_MSS as well
|
||||||
void AdjustSamplesVolume();
|
void AdjustSamplesVolume();
|
||||||
|
|
Loading…
Reference in a new issue