summaryrefslogtreecommitdiff
path: root/src/audio/AudioScriptObject.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-01-25 12:41:22 +0200
committerSergeanur <s.anureev@yandex.ua>2020-01-25 12:48:27 +0200
commitda253837d162686627c64f0faaedd5549db444da (patch)
treed061108eccd39287c37ec09aa00af1eac5298b56 /src/audio/AudioScriptObject.h
parent6ff06ff7c6d515533d8c18d1ce673c78a18695e2 (diff)
audio stuff
Collision audio and police radio stuff moved to a separate cpp's like in the original code cPoliceRadioQueue added, code refactored correspondingly cAudioManager::ServiceCollisions reversed PlayOneShotScriptObject reversed cAudioScriptObject moved to AudioScriptObject.cpp Fixed use of numbers on non-integer types (bools, pointers) enum is now used for ped audio calculation Added fixes for vehicle description in the police radio (missing vehicles and wrong colors)
Diffstat (limited to 'src/audio/AudioScriptObject.h')
-rw-r--r--src/audio/AudioScriptObject.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/audio/AudioScriptObject.h b/src/audio/AudioScriptObject.h
index 3d32913d..9aac1c30 100644
--- a/src/audio/AudioScriptObject.h
+++ b/src/audio/AudioScriptObject.h
@@ -128,4 +128,21 @@ enum
_SCRSOUND_BULLET_SHELL_HIT_GROUND_2 = 123,
};
+class cAudioScriptObject
+{
+public:
+ int16 AudioId;
+ CVector Posn;
+ int32 AudioEntity;
+
+ void Reset(); /// ok
+
+ static void* operator new(size_t);
+ static void* operator new(size_t, int);
+ static void operator delete(void*, size_t);
+ static void operator delete(void*, int);
+};
+
+static_assert(sizeof(cAudioScriptObject) == 20, "cAudioScriptObject: error");
+
extern void PlayOneShotScriptObject(uint8 id, CVector const &pos); \ No newline at end of file