summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-20 17:13:12 +0200
committerGitHub <noreply@github.com>2019-07-20 17:13:12 +0200
commit405c5c5cd2eee021ae96717580a9f62fcc051bd3 (patch)
tree78f249ce2fe3f4d3f1146f78fc47b69a5f1b4ff2 /src/audio/AudioManager.cpp
parentUpdate README.md (diff)
parentfix (diff)
downloadre3-405c5c5cd2eee021ae96717580a9f62fcc051bd3.tar
re3-405c5c5cd2eee021ae96717580a9f62fcc051bd3.tar.gz
re3-405c5c5cd2eee021ae96717580a9f62fcc051bd3.tar.bz2
re3-405c5c5cd2eee021ae96717580a9f62fcc051bd3.tar.lz
re3-405c5c5cd2eee021ae96717580a9f62fcc051bd3.tar.xz
re3-405c5c5cd2eee021ae96717580a9f62fcc051bd3.tar.zst
re3-405c5c5cd2eee021ae96717580a9f62fcc051bd3.zip
Diffstat (limited to '')
-rw-r--r--src/audio/AudioManager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index 07469b87..368c08e8 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -13,6 +13,7 @@
#include "Physical.h"
#include "Plane.h"
#include "PlayerPed.h"
+#include "Pools.h"
#include "SampleManager.h"
#include "Stats.h"
#include "Vehicle.h"
@@ -94,6 +95,11 @@ enum eVehicleModel {
CAR159,
};
+void *cAudioScriptObject::operator new(size_t sz) { return CPools::GetAudioScriptObjectPool()->New(); }
+void *cAudioScriptObject::operator new(size_t sz, int handle) { return CPools::GetAudioScriptObjectPool()->New(handle); }
+void cAudioScriptObject::operator delete(void *p, size_t sz) { CPools::GetAudioScriptObjectPool()->Delete((cAudioScriptObject*)p); }
+void cAudioScriptObject::operator delete(void *p, int handle) { CPools::GetAudioScriptObjectPool()->Delete((cAudioScriptObject*)p); }
+
cAudioManager &AudioManager = *(cAudioManager *)0x880FC0;
constexpr int totalAudioEntitiesSlots = 200;