mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-13 10:50:34 +00:00
Put more things under ifdef
This commit is contained in:
parent
6c2d179aad
commit
ce78081a7f
12 changed files with 213 additions and 138 deletions
|
@ -20,6 +20,8 @@ public:
|
|||
#ifndef GTA_PS2
|
||||
int32 m_nLoopStart;
|
||||
int32 m_nLoopEnd;
|
||||
#endif
|
||||
#ifdef EXTERNAL_3D_SOUND
|
||||
uint8 m_nEmittingVolume;
|
||||
#endif
|
||||
float m_fSpeedMultiplier;
|
||||
|
@ -285,7 +287,7 @@ public:
|
|||
void GenerateIntegerRandomNumberTable(); // inlined on PS2
|
||||
void LoadBankIfNecessary(uint8 bank); // this is used only on PS2 but technically not a platform code
|
||||
|
||||
#ifdef GTA_PC
|
||||
#ifdef EXTERNAL_3D_SOUND // actually must have been && AUDIO_MSS as well
|
||||
void AdjustSamplesVolume();
|
||||
uint8 ComputeEmittingVolume(uint8 emittingVolume, float intensity, float dist);
|
||||
#endif
|
||||
|
@ -525,6 +527,11 @@ public:
|
|||
#define RESET_LOOP_OFFSETS
|
||||
#define SET_LOOP_OFFSETS(sample)
|
||||
#endif
|
||||
#ifdef EXTERNAL_3D_SOUND
|
||||
#define SET_EMITTING_VOLUME(vol) m_sQueueSample.m_nEmittingVolume = vol
|
||||
#else
|
||||
#define SET_EMITTING_VOLUME(vol)
|
||||
#endif
|
||||
|
||||
#if defined(AUDIO_MSS) && !defined(PS2_AUDIO_CHANNELS)
|
||||
static_assert(sizeof(cAudioManager) == 19220, "cAudioManager: error");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue