summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-11 20:21:09 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-11 20:21:09 +0200
commit9b23e33c36facdad4b6f669501dbee7fa82ef50a (patch)
tree3f81b31669c2187720881afa07e2ed3db93d6694 /src/audio/AudioManager.h
parentMerge remote-tracking branch 'upstream/miami' into miami (diff)
parentMerge remote-tracking branch 'origin/master' into miami (diff)
downloadre3-9b23e33c36facdad4b6f669501dbee7fa82ef50a.tar
re3-9b23e33c36facdad4b6f669501dbee7fa82ef50a.tar.gz
re3-9b23e33c36facdad4b6f669501dbee7fa82ef50a.tar.bz2
re3-9b23e33c36facdad4b6f669501dbee7fa82ef50a.tar.lz
re3-9b23e33c36facdad4b6f669501dbee7fa82ef50a.tar.xz
re3-9b23e33c36facdad4b6f669501dbee7fa82ef50a.tar.zst
re3-9b23e33c36facdad4b6f669501dbee7fa82ef50a.zip
Diffstat (limited to 'src/audio/AudioManager.h')
-rw-r--r--src/audio/AudioManager.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h
index 0d0c5d91..99d67444 100644
--- a/src/audio/AudioManager.h
+++ b/src/audio/AudioManager.h
@@ -35,7 +35,7 @@ public:
int8 m_nVolumeChange;
};
-static_assert(sizeof(tSound) == 92, "tSound: error");
+VALIDATE_SIZE(tSound, 92);
class CPhysical;
class CAutomobile;
@@ -52,7 +52,7 @@ public:
uint8 m_AudioEvents;
};
-static_assert(sizeof(tAudioEntity) == 40, "tAudioEntity: error");
+VALIDATE_SIZE(tAudioEntity, 40);
class tPedComment
{
@@ -65,7 +65,7 @@ public:
int8 m_nProcess;
};
-static_assert(sizeof(tPedComment) == 28, "tPedComment: error");
+VALIDATE_SIZE(tPedComment, 28);
class cPedComments
{
@@ -80,7 +80,7 @@ public:
void Process();
};
-static_assert(sizeof(cPedComments) == 1164, "cPedComments: error");
+VALIDATE_SIZE(cPedComments, 1164);
class CEntity;
@@ -96,8 +96,7 @@ public:
int32 m_nMissionAudioCounter;
bool m_bIsPlayed;
};
-
-static_assert(sizeof(cMissionAudio) == 32, "cMissionAudio: error");
+VALIDATE_SIZE(cMissionAudio, 32);
// name made up
class cAudioScriptObjectManager
@@ -135,7 +134,7 @@ public:
float m_fVelocityChange;
};
-static_assert(sizeof(cVehicleParams) == 0x18, "cVehicleParams: error");
+VALIDATE_SIZE(cVehicleParams, 0x18);
enum {
/*
@@ -472,6 +471,8 @@ public:
void DebugShit();
};
-//dstatic_assert(sizeof(cAudioManager) == 19220, "cAudioManager: error");
+#ifdef AUDIO_MSS
+static_assert(sizeof(cAudioManager) == 19220, "cAudioManager: error");
+#endif
extern cAudioManager AudioManager;