summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-19 09:53:14 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-19 09:53:14 +0200
commit71e0895dc60303d364c7972608e51c1a027f19fc (patch)
treef4d8ee3ca5f0ac2e847fbaecf6a342becd617446 /src/audio/AudioManager.h
parentAudio: ifdef more things that aren't on ps2 (diff)
downloadre3-71e0895dc60303d364c7972608e51c1a027f19fc.tar
re3-71e0895dc60303d364c7972608e51c1a027f19fc.tar.gz
re3-71e0895dc60303d364c7972608e51c1a027f19fc.tar.bz2
re3-71e0895dc60303d364c7972608e51c1a027f19fc.tar.lz
re3-71e0895dc60303d364c7972608e51c1a027f19fc.tar.xz
re3-71e0895dc60303d364c7972608e51c1a027f19fc.tar.zst
re3-71e0895dc60303d364c7972608e51c1a027f19fc.zip
Diffstat (limited to 'src/audio/AudioManager.h')
-rw-r--r--src/audio/AudioManager.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h
index 34b2ce61..9d57e91e 100644
--- a/src/audio/AudioManager.h
+++ b/src/audio/AudioManager.h
@@ -30,8 +30,8 @@ public:
float m_SoundIntensity;
bool8 m_bReleasingSoundFlag;
CVector m_vecPos;
-#ifndef GTA_PS2
- bool8 m_bReverbFlag; // TODO: ifdef all the occurrences
+#if !defined(GTA_PS2) || defined(AUDIO_REVERB) // GTA_PS2 because this field exists on mobile but not on PS2
+ bool8 m_bReverbFlag;
#endif
#ifdef AUDIO_REFLECTIONS
uint8 m_nLoopsRemaining;
@@ -616,6 +616,11 @@ public:
#else
#define SET_SOUND_REFLECTION(b)
#endif
+#ifdef AUDIO_REVERB
+#define SET_SOUND_REVERB(b) m_sQueueSample.m_bReverbFlag = b
+#else
+#define SET_SOUND_REVERB(b)
+#endif
#if defined(AUDIO_MSS) && !defined(PS2_AUDIO_CHANNELS)
static_assert(sizeof(cAudioManager) == 0x5558, "cAudioManager: error");