mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-14 02:50:34 +00:00
Sync audio changes from master
This commit is contained in:
parent
43fbf297c8
commit
92c5cf1877
12 changed files with 377 additions and 189 deletions
|
@ -22,6 +22,8 @@ public:
|
|||
#ifndef GTA_PS2
|
||||
int32 m_nLoopStart;
|
||||
int32 m_nLoopEnd;
|
||||
#endif
|
||||
#ifdef EXTERNAL_3D_SOUND
|
||||
uint8 m_nEmittingVolume;
|
||||
#endif
|
||||
float m_fSpeedMultiplier;
|
||||
|
@ -202,7 +204,7 @@ public:
|
|||
uint8 m_bReverb; // unused
|
||||
bool8 m_bFifthFrameFlag;
|
||||
uint8 m_nActiveSamples;
|
||||
uint8 field_4; // unused
|
||||
uint8 m_bDoubleVolume; // unused
|
||||
bool8 m_bDynamicAcousticModelingStatus;
|
||||
int8 field_6;
|
||||
float m_fSpeedOfSound;
|
||||
|
@ -310,7 +312,7 @@ public:
|
|||
void GenerateIntegerRandomNumberTable();
|
||||
void LoadBankIfNecessary(uint8 bank);
|
||||
|
||||
#ifdef GTA_PC
|
||||
#ifdef EXTERNAL_3D_SOUND // actually must have been && AUDIO_MSS as well
|
||||
void AdjustSamplesVolume(); // inlined
|
||||
uint8 ComputeEmittingVolume(uint8 emittingVolume, float intensity, float dist); // inlined
|
||||
#endif
|
||||
|
@ -576,6 +578,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) == 0x5558, "cAudioManager: error");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue